repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
librec | librec-master/librec/src/main/java/librec/baseline/RandomGuess.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 1,223 | 26.2 | 82 | java |
librec | librec-master/librec/src/main/java/librec/baseline/ItemAverage.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 1,469 | 25.25 | 71 | java |
librec | librec-master/librec/src/main/java/librec/metric/IRatingMetric.java | package librec.metric;
import librec.intf.Recommender;
import librec.util.Logs;
import java.util.List;
/**
* Rating metrics are based on the difference between the user's rating and
* that returned by the recommender.
* Created by rdburke on 8/1/16.
*/
public interface IRatingMetric extends IMetric {
public ... | 7,255 | 30.964758 | 90 | java |
librec | librec-master/librec/src/main/java/librec/metric/MetricDict.java | package librec.metric;
import librec.intf.Recommender;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.Collection;
/**
* Utility class to associate metric names with the metric objects.
* Created by rdburke on 8/1/16.
*/
public class MetricDict<T... | 2,055 | 23.188235 | 70 | java |
librec | librec-master/librec/src/main/java/librec/metric/AverageMetric.java | package librec.metric;
import librec.intf.Recommender;
/**
* Created by rdburke on 8/2/16.
*/
public class AverageMetric implements IMetric {
String m_name;
double m_sum;
double m_avg;
public AverageMetric (String name) {
m_name = name;
}
public String getName () { return m_name; }... | 884 | 17.829787 | 90 | java |
librec | librec-master/librec/src/main/java/librec/metric/IDiversityMetric.java | package librec.metric;
import librec.intf.Recommender;
import java.util.List;
/**
* Created by rdburke on 8/2/16.
*/
public interface IDiversityMetric<T> extends IMetric {
public void updateDiversity(List<T> results, Recommender rec);
}
// diversity measures xD5, xD10,
class MetricDiv5 implements IDiversityM... | 1,632 | 23.742424 | 90 | java |
librec | librec-master/librec/src/main/java/librec/metric/IMetric.java | package librec.metric;
import librec.intf.Recommender;
/**
* General interface for metrics that evaluate recommender systems.
* Created by rdburke on 8/1/16.
*/
public interface IMetric {
/**
*
* @return the name of the metric, used for lookup
*/
public String getName ();
/**
* Ini... | 923 | 18.659574 | 88 | java |
librec | librec-master/librec/src/main/java/librec/metric/AvgMetricCollection.java | package librec.metric;
import librec.intf.Recommender;
import java.util.ArrayList;
import java.util.List;
/**
* Created by rdburke on 8/2/16.
*/
public class AvgMetricCollection {
MetricDict<AverageMetric> m_avgMetrics;
public AvgMetricCollection (Recommender rec) {
m_avgMetrics = new MetricDict<... | 2,258 | 30.816901 | 79 | java |
librec | librec-master/librec/src/main/java/librec/metric/MetricCollection.java | package librec.metric;
import java.util.ArrayList;
import java.util.List;
import java.util.Collection;
import librec.intf.Recommender;
import librec.util.Logs;
/**
* Collects all the metrics to be calculated. There are four separate collections:
* one for ratings, one for rankings, one for time, and one for divers... | 8,961 | 37.62931 | 130 | java |
librec | librec-master/librec/src/main/java/librec/metric/IRankingMetric.java | package librec.metric;
import librec.intf.Recommender;
import librec.util.Measures;
import librec.util.Stats;
import java.util.List;
import java.util.ArrayList;
/**
* Metrics that are based on the rank of the test items.
* Created by rdburke on 8/1/16.
*
* 2016/8/2 RB It seems inefficient to store a bunch of cop... | 6,385 | 26.059322 | 95 | java |
librec | librec-master/librec/src/main/java/librec/metric/ITimeMetric.java | package librec.metric;
import librec.intf.Recommender;
import librec.util.Dates;
/**
* Really just a placeholder for storing timing information. No computation required.
* Created by rdburke on 8/1/16.
*/
public interface ITimeMetric extends IMetric {
public void setTime(double time);
}
/**
* Created by rdb... | 1,482 | 21.134328 | 85 | java |
librec | librec-master/librec/src/main/java/librec/util/Sortor.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 20,633 | 28.061972 | 108 | java |
librec | librec-master/librec/src/main/java/librec/util/Maths.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 4,276 | 19.464115 | 77 | java |
librec | librec-master/librec/src/main/java/librec/util/FileConfiger.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 4,536 | 21.460396 | 106 | java |
librec | librec-master/librec/src/main/java/librec/util/Gaussian.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 4,495 | 31.817518 | 134 | java |
librec | librec-master/librec/src/main/java/librec/util/Sims.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 5,706 | 23.921397 | 116 | java |
librec | librec-master/librec/src/main/java/librec/util/EMailer.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 3,841 | 26.640288 | 80 | java |
librec | librec-master/librec/src/main/java/librec/util/LineConfiger.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 2,347 | 23.715789 | 88 | java |
librec | librec-master/librec/src/main/java/librec/util/Dates.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 2,723 | 29.954545 | 95 | java |
librec | librec-master/librec/src/main/java/librec/util/StringMap.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 2,025 | 23.707317 | 80 | java |
librec | librec-master/librec/src/main/java/librec/util/Debug.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 2,553 | 20.283333 | 88 | java |
librec | librec-master/librec/src/main/java/librec/util/Strings.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 10,429 | 23.71564 | 116 | java |
librec | librec-master/librec/src/main/java/librec/util/FileIO.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 20,520 | 26.434492 | 117 | java |
librec | librec-master/librec/src/main/java/librec/util/Gamma.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 3,335 | 26.8 | 117 | java |
librec | librec-master/librec/src/main/java/librec/util/URLReader.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 2,471 | 23.72 | 88 | java |
librec | librec-master/librec/src/main/java/librec/util/Randoms.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 15,214 | 22.589147 | 160 | java |
librec | librec-master/librec/src/main/java/librec/util/Systems.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 2,984 | 25.891892 | 82 | java |
librec | librec-master/librec/src/main/java/librec/util/Stats.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 6,782 | 19.430723 | 76 | java |
librec | librec-master/librec/src/main/java/librec/util/KernelSmoothing.java | package librec.util;
/**
* This is a class implementing kernel smoothing functions
* used in Local Low-Rank Matrix Approximation (LLORMA).
*
* @author Joonseok Lee
* @since 2013. 6. 11
* @version 1.2
*/
public class KernelSmoothing {
public final static int TRIANGULAR_KERNEL = 201;
public final static int UN... | 1,060 | 27.675676 | 76 | java |
librec | librec-master/librec/src/main/java/librec/util/Measures.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 8,835 | 26.356037 | 109 | java |
librec | librec-master/librec/src/main/java/librec/util/Lists.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 6,992 | 21.129747 | 118 | java |
librec | librec-master/librec/src/main/java/librec/util/Logs.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 3,465 | 21.076433 | 74 | java |
librec | librec-master/librec/src/main/java/librec/intf/Recommender.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 27,517 | 26.739919 | 156 | java |
librec | librec-master/librec/src/main/java/librec/intf/TensorRecommender.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 4,326 | 26.56051 | 105 | java |
librec | librec-master/librec/src/main/java/librec/intf/GraphicRecommender.java | package librec.intf;
import librec.data.Configuration;
import librec.data.DenseMatrix;
import librec.data.DenseVector;
import librec.data.SparseMatrix;
import librec.util.LineConfiger;
import librec.util.Logs;
import librec.util.Strings;
import com.google.common.collect.Table;
/**
* Probabilistic Graphic Models
* ... | 4,533 | 19.151111 | 90 | java |
librec | librec-master/librec/src/main/java/librec/intf/ContextRecommender.java | package librec.intf;
import java.util.Map;
import com.google.common.collect.Table;
import librec.data.ItemContext;
import librec.data.RatingContext;
import librec.data.SparseMatrix;
import librec.data.UserContext;
/**
* Generic recommenders where contextual information is used. The context can be user-, item- and ... | 913 | 23.052632 | 113 | java |
librec | librec-master/librec/src/main/java/librec/intf/SocialRecommender.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 3,351 | 26.933333 | 107 | java |
librec | librec-master/librec/src/main/java/librec/intf/IterativeRecommender.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 9,013 | 29.350168 | 123 | java |
librec | librec-master/librec/src/main/java/librec/data/DiagMatrix.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 2,854 | 23.194915 | 118 | java |
librec | librec-master/librec/src/main/java/librec/data/Context.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 1,763 | 22.52 | 120 | java |
librec | librec-master/librec/src/main/java/librec/data/DataSplitter.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 22,529 | 26.276029 | 117 | java |
librec | librec-master/librec/src/main/java/librec/data/DataDAO.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 21,179 | 25.810127 | 129 | java |
librec | librec-master/librec/src/main/java/librec/data/SparseVector.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 7,243 | 18.846575 | 90 | java |
librec | librec-master/librec/src/main/java/librec/data/SVD.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 12,101 | 21.369686 | 120 | java |
librec | librec-master/librec/src/main/java/librec/data/TensorEntry.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 1,103 | 20.230769 | 71 | java |
librec | librec-master/librec/src/main/java/librec/data/DataConvertor.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 3,552 | 24.561151 | 120 | java |
librec | librec-master/librec/src/main/java/librec/data/SymmMatrix.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 2,628 | 21.470085 | 84 | java |
librec | librec-master/librec/src/main/java/librec/data/SparseMatrix.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 20,819 | 21.483801 | 110 | java |
librec | librec-master/librec/src/main/java/librec/data/UserContext.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 1,880 | 20.62069 | 71 | java |
librec | librec-master/librec/src/main/java/librec/data/DenseMatrix.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 22,384 | 21.772126 | 119 | java |
librec | librec-master/librec/src/main/java/librec/data/RatingContext.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 2,536 | 18.820313 | 90 | java |
librec | librec-master/librec/src/main/java/librec/data/AddConfiguration.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 1,330 | 29.953488 | 71 | java |
librec | librec-master/librec/src/main/java/librec/data/Configuration.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 1,232 | 28.357143 | 72 | java |
librec | librec-master/librec/src/main/java/librec/data/VectorEntry.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 992 | 22.642857 | 71 | java |
librec | librec-master/librec/src/main/java/librec/data/ItemContext.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 2,116 | 17.734513 | 71 | java |
librec | librec-master/librec/src/main/java/librec/data/DenseVector.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 6,301 | 19.594771 | 85 | java |
librec | librec-master/librec/src/main/java/librec/data/MatrixEntry.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 1,057 | 21.510638 | 71 | java |
librec | librec-master/librec/src/main/java/librec/data/SparseTensor.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 24,174 | 22.470874 | 117 | java |
librec | librec-master/librec/src/main/java/librec/ranking/BPR.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 2,904 | 24.482456 | 127 | java |
librec | librec-master/librec/src/main/java/librec/ranking/WRMF.java | package librec.ranking;
import librec.data.*;
import librec.intf.IterativeRecommender;
import librec.util.Logs;
import librec.util.Strings;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* <h3>WRMF: Weighted Regularized Matrix Factorization.</h3>
* <p>
* This implementation refers t... | 5,491 | 29.175824 | 99 | java |
librec | librec-master/librec/src/main/java/librec/ranking/LDA.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 6,058 | 27.313084 | 119 | java |
librec | librec-master/librec/src/main/java/librec/ranking/WBPR.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 5,184 | 26.433862 | 114 | java |
librec | librec-master/librec/src/main/java/librec/ranking/FISMauc.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 5,076 | 23.887255 | 113 | java |
librec | librec-master/librec/src/main/java/librec/ranking/LRMF.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 3,011 | 25.892857 | 120 | java |
librec | librec-master/librec/src/main/java/librec/ranking/CLiMF.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 3,608 | 22.435065 | 119 | java |
librec | librec-master/librec/src/main/java/librec/ranking/SLIM.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 6,215 | 26.75 | 123 | java |
librec | librec-master/librec/src/main/java/librec/ranking/GBPR.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 4,798 | 23.360406 | 112 | java |
librec | librec-master/librec/src/main/java/librec/ranking/FISMrmse.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 5,629 | 24.36036 | 113 | java |
librec | librec-master/librec/src/main/java/librec/ranking/BUCM.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 9,186 | 23.696237 | 118 | java |
librec | librec-master/librec/src/main/java/librec/ranking/CPTF.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 3,248 | 23.801527 | 92 | java |
librec | librec-master/librec/src/main/java/librec/ranking/BHfree.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 7,089 | 22.872054 | 120 | java |
librec | librec-master/librec/src/main/java/librec/ranking/SBPR.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 6,167 | 25.025316 | 117 | java |
librec | librec-master/librec/src/main/java/librec/ranking/RankSGD.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 3,416 | 23.76087 | 103 | java |
librec | librec-master/librec/src/main/java/librec/ranking/ItemBigram.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 6,874 | 24.749064 | 102 | java |
librec | librec-master/librec/src/main/java/librec/ranking/AoBPR.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 5,381 | 25.776119 | 103 | java |
librec | librec-master/librec/src/main/java/librec/ranking/RankALS.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 6,025 | 28.539216 | 101 | java |
librec | librec-master/librec/src/main/java/librec/rating/SoReg.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 4,273 | 23.994152 | 117 | java |
librec | librec-master/librec/src/main/java/librec/rating/ItemKNN.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 4,232 | 30.355556 | 119 | java |
librec | librec-master/librec/src/main/java/librec/rating/LDCC.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 7,196 | 22.291262 | 117 | java |
librec | librec-master/librec/src/main/java/librec/rating/URP.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 7,462 | 23.711921 | 118 | java |
librec | librec-master/librec/src/main/java/librec/rating/LLORMAUpdater.java | package librec.rating;
import librec.data.DenseMatrix;
import librec.data.DenseVector;
import librec.data.MatrixEntry;
import librec.data.SparseMatrix;
import librec.util.Randoms;
/**
* <h3>Local Low-Rank Matrix Approximation</h3>
* <p>
* This implementation refers to the method proposed by Lee et al. at ICML 2013... | 5,519 | 21.348178 | 117 | java |
librec | librec-master/librec/src/main/java/librec/rating/SVDPlusPlus.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 3,336 | 22.835714 | 118 | java |
librec | librec-master/librec/src/main/java/librec/rating/TimeSVD.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 9,504 | 23.247449 | 131 | java |
librec | librec-master/librec/src/main/java/librec/rating/BiasedMF.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 2,723 | 23.321429 | 114 | java |
librec | librec-master/librec/src/main/java/librec/rating/LLORMA.java | package librec.rating;
import librec.data.DenseMatrix;
import librec.data.DenseVector;
import librec.data.MatrixEntry;
import librec.data.SparseMatrix;
import librec.intf.IterativeRecommender;
import librec.intf.Recommender;
import librec.util.KernelSmoothing;
import librec.util.Logs;
import java.util.List;
/**
* <h... | 8,745 | 28.748299 | 109 | java |
librec | librec-master/librec/src/main/java/librec/rating/SocialMF.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 3,572 | 25.080292 | 113 | java |
librec | librec-master/librec/src/main/java/librec/rating/TrustMF.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 6,334 | 21.464539 | 85 | java |
librec | librec-master/librec/src/main/java/librec/rating/GPLSA.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 7,208 | 23.35473 | 118 | java |
librec | librec-master/librec/src/main/java/librec/rating/TrustSVD.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 6,591 | 24.160305 | 120 | java |
librec | librec-master/librec/src/main/java/librec/rating/BPMF.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 9,362 | 27.720859 | 119 | java |
librec | librec-master/librec/src/main/java/librec/rating/CPTF.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 3,502 | 22.198675 | 92 | java |
librec | librec-master/librec/src/main/java/librec/rating/UserKNN.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 3,829 | 28.236641 | 119 | java |
librec | librec-master/librec/src/main/java/librec/rating/RSTE.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 4,772 | 24.66129 | 124 | java |
librec | librec-master/librec/src/main/java/librec/rating/SoRec.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 3,961 | 23.918239 | 119 | java |
librec | librec-master/librec/src/main/java/librec/rating/PMF.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 2,043 | 24.55 | 118 | java |
librec | librec-master/librec/src/main/java/librec/rating/RfRec.java | // Copyright (C) 2014-2015 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | 6,020 | 28.806931 | 113 | java |
librec | librec-master/librec/src/main/java/librec/ext/AR.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 2,879 | 25.422018 | 120 | java |
librec | librec-master/librec/src/main/java/librec/ext/External.java | package librec.ext;
import librec.data.SparseMatrix;
import librec.intf.Recommender;
/**
* <p>
* Suppose that you have some predictive ratings (in "pred.txt") generated by an external recommender (e.g., some
* recommender of MyMediaLite). The predictions are in the format of user-item-prediction. These predictions... | 1,149 | 30.944444 | 119 | java |
librec | librec-master/librec/src/main/java/librec/ext/PD.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 2,553 | 24.287129 | 120 | java |
librec | librec-master/librec/src/main/java/librec/ext/Hybrid.java | // Copyright (C) 2014 Guibing Guo
//
// This file is part of LibRec.
//
// LibRec is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//... | 6,324 | 26.863436 | 119 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.