zoukankan      html  css  js  c++  java
  • Experiments on the NYC dataset(updated 7th,Aug)

    Experiments on the NYC datasets,

    here is the dataset link: https://sites.google.com/site/yangdingqi/home/foursquare-dataset

    Forgive me being lazy and uploading a manuscript photo about the preprocessing of the data:

    The codes are available on the github, here is the link:
    Binary Tests

    Take into each user's check in time

    And This is the result I run the code on cluster:

    unique user&venue checkin combination in test 18205
    unique user&venue checkin combination in test 72819
    max num in matrix 1.0
    max num in train 1.0
    I am beginning to model
    model has been fitted
    this is the binary model
    Time used: 4.789567
    Train_auc is 0.999504
    Test_aus is 0.654491
    /home/s2013258/.local/lib/python3.5/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
      "This module will be removed in 0.20.", DeprecationWarning)
    
    
    
    
    unique user&venue checkin combination in test 18205
    unique user&venue checkin combination in test 72819
    max num in matrix 257
    max num in train 205
    I am beginning to model
    model has been fitted
    this is the model that consider the checkin times
    Time used: 4.782983
    Train_auc is 0.999508
    Test_aus is 0.655189
    /home/s2013258/.local/lib/python3.5/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
      "This module will be removed in 0.20.", DeprecationWarning)

    As for the hybrid model, I have nort tried it yet, TBC.....

    ##Hybrid Model

    Got some unexpected results!

    The github link is the same. already updated it.

    Here i s the result running on cluster:

    unique user&venue checkin combination in test 18205
    unique user&venue checkin combination in test 72819
    max num in matrix 170
    max num in train 257
    I am beginning to model
    model has been fitted
    this is the model that consider the checkin times
    Time used: 4.2123550000000005
    Train_auc is 0.999521
    Test_aus is 0.653367
    Collabrative Filtering testAUC is: 0.682076
    Hybrid train auc is 0.518521
    Hybrig test auc is 0.514115
    /home/s2013258/.local/lib/python3.5/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
      "This module will be removed in 0.20.", DeprecationWarning)

    The train AUC and the train AUC in the hybrid models are both way much lower than the ordinary CF.

    In such a non-cold-start problem, maybe the item feature labels are unnessary?

    But the act that model bias been set to zero do improve the AUC significanty.

  • 相关阅读:
    mongodb python image 图像存储读取
    python 编码 UnicodeDecodeError
    UnicodeDecodeError: 'gbk' codec can't decode byte 0xff in position 0: illegal multibyte sequence
    eclipse emacs
    mongodb windows install &python
    虚度的日子们
    C# list与数组互相转换
    C# 一个多层循环中,break一次能跳出几个循环?
    C# Byte[]、Image、Bitmap 之间的相互转换
    C# 写入和读出文本文件
  • 原文地址:https://www.cnblogs.com/fassy/p/7281663.html
Copyright © 2011-2022 走看看