Skip to content

Instantly share code, notes, and snippets.

@napjon
napjon / LeanCanvas.md
Created March 10, 2021 11:11 — forked from pierrebeaucamp/LeanCanvas.md
A Lean Canvas in markdown

Lean Canvas

The Lean Canvas is a version of the Business Model Canvas adapted by Ash Maurya specifically for startups. You can read more about it here.

Problem

Top 3 Problems

@napjon
napjon / collab_topN_recommend.ipynb
Last active June 22, 2021 10:09
Add Feature FastAI Use Collab for topN recommendation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@napjon
napjon / from_sklearn.py
Last active September 12, 2017 21:49
Method to convert docs using sklearn to pyLDAVis
def from_sklearn(docs,vect,lda,**kwargs):
"""Create Prepared Data from sklearn's vectorizer and Latent Dirichlet
Application
Parameters
----------
docs : Pandas Series.
Documents to be passed as an input.
vect : Scikit-Learn Vectorizer (CountVectorizer,TfIdfVectorizer).
import fnmatch
import os
import shutil
matches = []
for root, dirnames, filenames in os.walk(rootPath):
for filename in filenames:
matches.append(os.path.join(root, filename))
print(os.path.join(root, filename))
shutil.move(os.path.join(root, filename), os.path.join(destDir, filename))
@napjon
napjon / README.md
Last active January 1, 2016 05:10
Gist for showing the visualization

This is the visualization: http://bl.ocks.org/napjon/raw/3a36381045a0b872e312/

Summary

The visualization measures the performance of 2015 US Flight. Performance based on how much on time number of flights, and how it decrease vary based on number of flights delay,cancelled,diverted.

Here are the image taken from http://blog.jakpat.net/indonesia-mobile-behavior-report-2014/

This graph show how the average hours used for mobile device in Indonesia.

Why it should be fixed

  • It uses a pie chart. It could give users wrong information. We can't compare each of the category. It's difficult to compare each of the pie size.
  • It uses rainbow colors. We don't know which color are good or bad.What are the meaning of each of the color, hours alone could differentiate it to category. We don't know if yellow bright, yellow, yellow dark is giving some different information.
  • It use almost duplicate colors. for color blind people, they may have some difficulty.