| • CryptoPumpRocket • |
رفتن به کانال در Telegram
أهلا وسهلا بكم ⚫️ تحليل لوضع السوق والبتكوين ⚫️ صفقات سبوت فقط جروب الدردشة 👇 https://t.me/+dXTdkIKTbCFhNGI8 الادمن : @Mhd3ayyadd
نمایش بیشتر1 327
مشترکین
اطلاعاتی وجود ندارد24 ساعت
-97 روز
-1830 روز
آرشیو پست ها
Lista/usdt rebuy 0.72-0.73
Targets
0.745
0.755
0.762
0.77
0.78
0.8
0.82
0.84
Stop 0.68
y_proba = logistic_regression.predict_proba(X)
y_pred = logistic_regression.predict(X)
logistic_regression = LogisticRegression()
logistic_regression.fit(X, y)
stud_data['intercept'] = 1
independent_variables = stud_data[['Hours Studied', 'intercept']]
This code
plt.scatter(X, y) plt.plot(X, linear_regression.predict(X), color='red') plt.xlabel('Hours Studied') plt.ylabel('Average') plt.title('Hours Studied vs Average') plt.show()
correlation = stud_data['Hours Studied'].corr(stud_data['Average'])
print("Correlation between Hours Studied and Average:", correlation)
We have collected students' average test grade scores and their respective average number of study hours for the test for group of students. The collected data in the file stud average.csv
Hours Studied Average
2
3
4
5
6
57
65
73
75
79
1. Write the code to convert the file to a data frame with name stod data
2. Write the code for creating X data frame (independent variable) and y data frame (dependent variable)
3. Write the code to plot a scatter plot between independent and dependent variables
4. Write the code to find the correlation between variables
5. Write the code for creating linear regression object
6. Write the code for training the model using training sets
7. Write the code for plotting fitted line with title Hours Studied vs Average, zlabel: Hours Studied, ylabel. Average
8. Write the code to add predicted value to the data frame with mame pred average
Add to stad data the column "intercept with the value 1 and creste a new data frame with name independent variables that contains the columns Hours Studied and intercept
10. Write the code for creating X dots frame (independent variable and y dots frame for dependent variable
1. Write the code to create Logistic Regression object and tit with X and y
12 Write the code to check the securacy of the model on the tranng set
13. Use the pred proba to returns areay containing probability of you and y
14. Wite the code to test the anodel on N
15. Write the code to plot the timed Ime withe title. Hans Studied vs Average, slabel: Howes Studies ylobe Ave
We have collected students' average test grade scores and their respective average number of study hours for the test for group of students. The collected data in the file stud average.csv
Hours Studied Average
2
3
4
5
6
57
65
73
75
79
1. Write the code to convert the file to a data frame with name stod data
2. Write the code for creating X data frame (independent variable) and y data frame (dependent variable)
3. Write the code to plot a scatter plot between independent and dependent variables
4. Write the code to find the correlation between variables
5. Write the code for creating linear regression object
6. Write the code for training the model using training sets
7. Write the code for plotting fitted line with title Hours Studied vs Average, zlabel: Hours Studied, ylabel. Average
8. Write the code to add predicted value to the data frame with mame pred average
Add to stad data the column "intercept with the value 1 and creste a new data frame with name independent variables that contains the columns Hours Studied and intercept
10. Write the code for creating X dots frame (independent variable and y dots frame for dependent variable
1. Write the code to create Logistic Regression object and tit with X and y
12 Write the code to check the securacy of the model on the tranng set
13. Use the pred proba to returns areay containing probability of you and y
14. Wite the code to test the anodel on N
15. Write the code to plot the timed Ime withe title. Hans Studied vs Average, slabel: Howes Studies ylobe Ave
