Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

machine learning python

import pandas as pd
from sklearn.tree import DecisionTreeClassifier

hashdata = pd.read_csv("filename.csv")
X = hashdata.drop(columns=["output_column_name"])
y = hashdata.drop(columns=["input_column_name"])
model=DecisionTreeClassifier()
model.fit(X,y)
predictions=model.predict([[input]])
print(predictions)
 
PREVIOUS NEXT
Tagged: #machine #learning #python
ADD COMMENT
Topic
Name
5+1 =