Test 2
Test 2
February 8, 2025
[2]: dataset=pd.read_csv("bulk.csv")
[3]: dataset
[3]: Input frequency (mhz) Input Voltage (V) Output Current (A) \
0 27 5.00 0.3560
1 27 5.45 0.3960
2 27 5.90 0.4368
3 27 6.35 0.4770
4 27 6.80 0.5171
.. … … …
95 27 47.75 4.1700
96 27 48.20 4.2100
97 27 48.65 4.2500
98 27 49.10 4.2900
99 27 49.55 4.3300
[5]: independent
1
[5]: Input frequency (mhz) Output Current (A)
0 27 0.3560
1 27 0.3960
2 27 0.4368
3 27 0.4770
4 27 0.5171
.. … …
95 27 4.1700
96 27 4.2100
97 27 4.2500
98 27 4.2900
99 27 4.3300
[7]: dependent
[16]: LinearRegression()
[17]: weight=regressor.coef_
weight
2
[18]: bais=regressor.intercept_
bais
[18]: array([0.00880743])
[19]: y_pred=regressor.predict(X_test)
[21]: r_score
[21]: 0.9999966190491044
[25]: loaded_model=pickle.load(open("finalized_model_Mul_linear_bulk.sav",'rb'))
result=loaded_model.predict([[27,4.25]])
C:\ProgramData\anaconda3\Lib\site-packages\sklearn\base.py:493: UserWarning: X
does not have valid feature names, but LinearRegression was fitted with feature
names
warnings.warn(
[26]: result
[26]: array([[21.24213884]])
[ ]: