Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to predict the output for new data with the model tested already

data_2017 = pd.read_csv(data_path)
test_predictions = logmodel.predict(data_2017[['Daily Time Spent on Site', 'Age', 'Area Income','Daily Internet Usage', 'Male']])

or

data_2017["predictions"] = test_predictions
 
PREVIOUS NEXT
Tagged: #predict #output #data #model #tested
ADD COMMENT
Topic
Name
7+2 =