Giter Club home page Giter Club logo

datapiques_source's Introduction

Hi there 👋

I work at Runway. My GitHub is mainly a collection of largely useless side projects.

I write about many of these side projects on my blog.

I tweet toot / skeet sometimes, mostly about data things, though urbanist rants sneek through.

My repositories, sorted by star count, descending are:

name description created
196 skits scikit-learn-inspired time series 2018
129 spacecutter Ordinal regression models in PyTorch 2018
127 torchmf matrix factorization in PyTorch 2017
99 nannernest Optimal peanut butter and banana sandwiches 2020
67 discovered-weekly Backup each Discover Weekly to playlists 2021
53 DataPiques_source deprecated 2015
48 rec-a-sketch content discovery... IN 3D 2016
23 nn-vs-ann Nearest Neighbors vs Approximate Nearest Neighbors 2023
23 medium-data-bakeoff A python library bakeoff for medium sized datasets 2022
10 aispy ML monitoring with materialize.com 2022
9 alignimation Automated image registration. Registrationimation was too much of a mouthful. 2021
7 bike-listener track citibike station occupancy 2016
6 website-source My personal Hugo-driven static website 2018
5 serverless-event-collector It's what the name says it is. 2020
5 newtonfm Factorization Machines with Newton's Method 2017
4 gpu-streamz Live GPU monitoring with streamz 2018
3 route-response-theory 2022
3 distmem 2016
3 fml fantasy movie league as an allocation problem 2018
2 festival-chatter Quantifying summer music festivals 2014
1 advent-of-code-2021 2021
1 stm-routines STM analysis in MATLAB and python. 2014
1 advent-of-code-2020 2020
0 houston-hall 2016
0 ethanrosenthal.github.io deprecated 2014
0 EthanRosenthal Public README 2021
0 datasciencecoursera 2014
0 physics-website My old academic-themed website 2018
0 DataPiques deprecated 2015
0 citi-bikecaster-model Model training and prediction for the citi-bikecaster 2019
0 citi-bikecaster some lambdas to ping the citi bike api 2019
0 boat-website Source code for my boat website 2023
0 blog deprecated 2014
0 BaseballProject 2014
0 TutorWorthy Insight data science project 2015

datapiques_source's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

datapiques_source's Issues

Unable to install implicit package in google colab

Hi Ethan

I am trying to install your fork of implicit library but I am not able to install it. Can you please look into this issue.

!git clone https://github.com/EthanRosenthal/implicit.git
%cd implicit
# !ls
!python setup.py install

Here is the error

/usr/local/lib/python3.7/dist-packages/setuptools/dist.py:694: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
% (opt, underscore_opt))
running install
running bdist_egg
running egg_info
writing implicit.egg-info/PKG-INFO
writing dependency_links to implicit.egg-info/dependency_links.txt
writing requirements to implicit.egg-info/requires.txt
writing top-level names to implicit.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'implicit.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'implicit._implicit' extension
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-OGiuun/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-OGiuun/python3.7-3.7.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c implicit/_implicit.c -o build/temp.linux-x86_64-3.7/implicit/_implicit.o -Wno-unused-function -O3 -ffast-math -fopenmp -march=native
implicit/_implicit.c: In function ‘__Pyx__ExceptionSave’:
implicit/_implicit.c:18236:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
*type = tstate->exc_type;
^~~~~~~~
curexc_type
implicit/_implicit.c:18237:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
*value = tstate->exc_value;
^~~~~~~~~
curexc_value
implicit/_implicit.c:18238:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
*tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
implicit/_implicit.c: In function ‘__Pyx__ExceptionReset’:
implicit/_implicit.c:18245:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tmp_type = tstate->exc_type;
^~~~~~~~
curexc_type
implicit/_implicit.c:18246:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
implicit/_implicit.c:18247:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
implicit/_implicit.c:18248:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tstate->exc_type = type;
^~~~~~~~
curexc_type
implicit/_implicit.c:18249:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tstate->exc_value = value;
^~~~~~~~~
curexc_value
implicit/_implicit.c:18250:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tstate->exc_traceback = tb;
^~~~~~~~~~~~~
curexc_traceback
implicit/_implicit.c: In function ‘__Pyx__GetException’:
implicit/_implicit.c:18305:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tmp_type = tstate->exc_type;
^~~~~~~~
curexc_type
implicit/_implicit.c:18306:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
implicit/_implicit.c:18307:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
implicit/_implicit.c:18308:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tstate->exc_type = local_type;
^~~~~~~~
curexc_type
implicit/_implicit.c:18309:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tstate->exc_value = local_value;
^~~~~~~~~
curexc_value
implicit/_implicit.c:18310:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tstate->exc_traceback = local_tb;
^~~~~~~~~~~~~
curexc_traceback
implicit/_implicit.c: In function ‘__Pyx__ExceptionSwap’:
implicit/_implicit.c:18977:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tmp_type = tstate->exc_type;
^~~~~~~~
curexc_type
implicit/_implicit.c:18978:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
implicit/_implicit.c:18979:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
implicit/_implicit.c:18980:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tstate->exc_type = *type;
^~~~~~~~
curexc_type
implicit/_implicit.c:18981:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tstate->exc_value = *value;
^~~~~~~~~
curexc_value
implicit/_implicit.c:18982:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tstate->exc_traceback = *tb;
^~~~~~~~~~~~~
curexc_traceback
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

model.predict_for_customers()

Hello,First of all, great tutorial post. I am referring to the post

Intro to Implicit Matrix Factorization: Classic ALS with Sketchfab Models

Two comments I have.

  1. you said that you are using the implicit package, and it seems that in the class AlternatingLeastSquares there is no method predict_for_customers(). Have you created your own version of the ALS class? You mentioned that before getting the item-to-item recommendations.

To get item-to-item recommendations, I made a small method predict_for_items in the ALS class.

Is the predictor_for_user simply: predict_for_customers = model.user_factors.dot(model.item_factors.T)

  1. In the function learning_curve(), why do you have this if statement
for epoch in epochs:
    model.iterations = epoch - prev_epoch
    if not hasattr(model, 'user_vectors'):
        model.fit(train)
    else:
        model.fit_partial(train)

Tks.

Questions in notebook 2016-10-19-implicit-mf-part-1.ipynb

Hi Ethan,

First of all thank you very much for your posts and notebooks. I rarely come across such detailed rich python recommender tutorials online like yours.

I've been trying to replicate the process in the notebook 2016-10-19-implicit-mf-part-1.ipynb. I can follow pretty much all the contents, except I get stuck at the functions calculate_mse, and precision_at_k. Perhaps when you implemented them, the implicit library had an order version, but now the model.predict_for_customers() does not exist anymore. May I ask what would be a remedy for this? I've thought about using model.recommend() instead, but I'm not too sure how to adjust the training matrix or testing matrix accordingly.

Secondly I discovered that the model.fit() method expects the rating matrix to have items as rows, users as columns. Yet you seem to shape the rating matrix as users as rows, items as columns. Do you think this would be a problem?

Hope to hear from you.

Many thanks

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.