Skip to content

Instantly share code, notes, and snippets.

View sananth12's full-sized avatar
📵
I may be slow to respond.

Anantha Natarajan S sananth12

📵
I may be slow to respond.
View GitHub Profile
%pyspark
from pyspark.mllib.regression import LabeledPoint
import numpy as np
from pyspark.sql import Row
from pyspark.sql import functions as sql_functions
from pyspark.sql.types import *
import matplotlib.pyplot as plt
import matplotlib.cm as cm
@sananth12
sananth12 / .py
Created May 5, 2017 00:09
Artist Recommendation
%pyspark
from pyspark.mllib.regression import LabeledPoint
import numpy as np
from pyspark.sql import Row
from pyspark.sql import functions as sql_functions
from pyspark.sql.types import *
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from pyspark.mllib.recommendation import *
import random