Git Product home page Git Product logo

web3's Introduction

This is for Web3 lab

The testingdata fold is a small set of data based on the courseware Page46

In this procedure, -1 represents no record

Item-based recommendation

2021.2.24 17:35 UTC+08

添加了基于物品的预测,输出文件存储在/testingdata/Item_based_recommend_matrix.npy

User-Based recommendation

2021.2.26 18:03 UTC+08

添加了基于用户的预测:

    def __init__(self, k=10, useRelation=True):
        self.dataDir = '../testingdata/'
        self.testDataPath = '../testingdata/testing.dat'
        self.K = k
        self.useRelation = useRelation

默认k=10,输出地址根据以上初始化数据更改

有如下命令行参数:

  • -k: 指定k值
  • --relation:存在此flag则使用权重,否则不使用权重

例:

python ./user_based_predict.py -k 2 --relation # 使用关系权重,2-最近邻推荐

web3's People

Contributors

xuruida avatar xiehangyu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.