altheanabila / SVM-simulation-with-regression-model-using-Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVM-simulation-with-regression-model-using-Python

I try to run SVM method based on previous regression model.

  1. First of all importing data movie_regression.csv and extracting into panda dataframes

textimage

  1. Missing value treatment by using mean value

textimage

  1. Dummy variable treatment by replacing string value with binary variable

textimage

  1. Define X and y variable

textimage

  1. train the data using test train split syntax. We only take 20% of available data as testing data

textimage

  1. Standardizing data by converting mean and variance of each data into 0 and 1

textimage

  1. Predict y value using svm model

textimage

  1. Find out the model performance accuracy. R2 for y train prediction and y test prediction stood above 0,5 which indicates a good model

textimage

About


Languages

Language:Jupyter Notebook 100.0%