This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rocker/r-ver:devel | |
RUN apt-get update && apt-get install -y \ | |
sudo \ | |
gdebi-core \ | |
pandoc \ | |
pandoc-citeproc \ | |
libcurl4-gnutls-dev \ | |
libcairo2-dev \ | |
libxt-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID,Book Title | |
1,Probabilistic Graphical Models | |
2,Bayesian Data Analysis | |
3,Doing data science | |
4,Pattern Recognition and Machine Learning | |
5,The Elements of Statistical Learning | |
6,An introduction to Statistical Learning | |
7,Python Machine Learning | |
8,Natural Langauage Processing with Python | |
9,Statistical Distributions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recommending 2 books similar to The Elements of Statistical Learning | |
---------------------------------------------------------- | |
You may also like to read: An introduction to Statistical Learning (score:0.389869522721) | |
You may also like to read: Statistical Distributions (score:0.13171009673) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.metrics.pairwise import linear_kernel | |
ds = pd.read_csv("test1.csv") #you can plug in your own list of products or movies or books here as csv file# | |
tf = TfidfVectorizer(analyzer='word', ngram_range=(1, 3), min_df=0, stop_words='english') | |
#ngram explanation begins# | |
#ngram (1,3) can be explained as follows# | |
#ngram(1,3) encompasses uni gram, bi gram and tri gram | |
#consider the sentence "The ball fell" |
NewerOlder