search for: my_predict

Displaying 2 results from an estimated 2 matches for "my_predict".

Did you mean: mispredict
2024 Jul 13
1
Obtaining predicted probabilities for Logistic regression
...code Dat = read.csv('https://raw.githubusercontent.com/sam16tyagi/Machine-Learning-techniques-in-python/master/logistic%20regression%20dataset-Social_Network_Ads.csv') head(Dat) Model = glm(Purchased ~ Gender, data = Dat, family = binomial()) head(predict(Model, type="response")) My_Predict = 1/(1+exp(-1 * (as.vector(coef(Model))[1] * as.vector(coef(Model))[2] * ifelse(Dat['Gender'] == "Male", 1, 0)))) head(My_Predict) However, My_Predict and predict(Model, type="response")) are differing when I tried to manually calculate prediction. Could you please hel...
2024 Jul 13
1
Obtaining predicted probabilities for Logistic regression
...('https://raw.githubusercontent.com/sam16tyagi/Machine-Learning-techniques-in-python/master/logistic%20regression%20dataset-Social_Network_Ads.csv') > head(Dat) > Model = glm(Purchased ~ Gender, data = Dat, family = binomial()) > head(predict(Model, type="response")) > My_Predict = 1/(1+exp(-1 * (as.vector(coef(Model))[1] * > as.vector(coef(Model))[2] * ifelse(Dat['Gender'] == "Male", 1, 0)))) > head(My_Predict) > > However, My_Predict and predict(Model, type="response")) are differing > when I tried to manually calculate predicti...