zoukankan      html  css  js  c++  java
  • new lightfm model with different radius(updated 29th,Aug)

     some results running on the linux laptop with the new model:

    radius: 10 max_sampled: 10

    liu@arunr-Inspiron-5548:~/code$ python3 newlfmodelradius.py
    /home/liu/.local/lib/python3.5/site-packages/sklearn/cross_validation.py:41: 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)
    this is test for new lightfm, 10000 checkins,and radius as 10
    unique user&venue checkin combination in test 1414
    unique user&venue checkin combination in test 5654
    max num in matrix 14
    max num in train 13
    I am beginning to get negtive examples
    object preprocess created
    get neighbor time used: 1896.430985
    Time used for negative examples: 1908.565092
    I am beginning to model,this is the new model
    model has been fitted
    this is the model that consider the checkin times
    Time used: 0.7560190000001512
    Train_auc is 0.545424
    test auc is 0.465073

     the same data with the original lightfm model:

    unique user&venue checkin combination in test 1414
    unique user&venue checkin combination in test 5654
    max num in matrix 13
    max num in train 14
    I am beginning to model
    model has been fitted
    this is the model that consider the checkin times
    Time used: 2.494451837632795
    Train_auc is 0.999937
    Test_aus is 0.329455
    train prek is 0.545433
    test prek is 0.001780

    Radius = 28

    linux and new model:

    liu@arunr-Inspiron-5548:~/code$ python3 newlfmodelradius.py
    /home/liu/.local/lib/python3.5/site-packages/sklearn/cross_validation.py:41: 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)
    this is test for new lightfm,max_sampled 10,and 5000 checkins,and radius as 28
    unique user&venue checkin combination in test 828
    unique user&venue checkin combination in test 3308
    max num in matrix 9
    max num in train 6
    I am beginning to get negtive examples
    object preprocess created
    get neighbor time used: 723.777078
    Time used for negative examples: 732.986114
    I am beginning to model,this is the new model
    model has been fitted
    this is the model that consider the checkin times
    Time used: 0.4626779999999826
    Train_auc is 0.504067
    test auc is 0.506288
    train prek 0.007048
    test prek 0.000225

    radius = 15

  • 相关阅读:
    实验 7:OpenDaylight 实验——Python 中的 REST API 调用
    实验 6:OpenDaylight 实验——OpenDaylight 及 Postman实现流表下发
    实验 5:OpenFlow 协议分析和 OpenDaylight 安装
    实验 4:Open vSwitch 实验——Mininet 中使用 OVS 命令
    实验 3:Mininet 实验——测量路径的损耗率
    软件工程第一次作业——自我介绍
    实验 2:Mininet 实验——拓扑的命令脚本生成
    实验1、Mininet 源码安装和可视化拓扑工具
    第01组 Beta版本演示
    第01组 Beta冲刺(4/4)
  • 原文地址:https://www.cnblogs.com/fassy/p/7450958.html
Copyright © 2011-2022 走看看