I was getting only one answer array([6]) Solution: Use Previously Fitted Scalers def recommendation(N, P, K, temperature, humidity, ph, rainfall): features = np.array([[N, P, K, temperature, humidity, ph, rainfall]]) # Use the pre-fitted scalers to transform the input mx_features = mx.transform(features) sc_mx_features = sc.transform(mx_features) prediction = randclf.predict(sc_mx_features) return prediction[0]
you have to remove rice column from the dataset one of the method is : assign 1-7 column data to a new variable code: new_crop = crop.iloc[ : , :7 ] new_crop.corr() this will take only the staring 7 column thus no error will occur .
I was getting only one answer array([6])
Solution: Use Previously Fitted Scalers
def recommendation(N, P, K, temperature, humidity, ph, rainfall):
features = np.array([[N, P, K, temperature, humidity, ph, rainfall]])
# Use the pre-fitted scalers to transform the input
mx_features = mx.transform(features)
sc_mx_features = sc.transform(mx_features)
prediction = randclf.predict(sc_mx_features)
return prediction[0]
hello sir 28:38 par aapka code run ho rha but mere me ( Input y contains NaN). error show ho rha please help me
Sir can you make one new project on real time face recognition using deep learning similar to other deep learning projects in your series
Sir your project is providing the wrong result
Bhai html data fetch nahi kar Raha hai data.
project recommend nahi kar pa Raha hai how to solve this problem
Why it is always giving output as 6 ?
Sir crop.corr nhi chal raha rice ko float m nhi le raha
you have to remove rice column from the dataset
one of the method is : assign 1-7 column data to a new variable
code: new_crop = crop.iloc[ : , :7 ]
new_crop.corr()
this will take only the staring 7 column thus no error will occur .
@@SahilBeniwal-e1o used corr(numeric_only=True) using this you don't need to remove any columns for corr() methoss
This project html part is not working
Sir can make video on how generate link free after bulid flask app
I'll try it in Streamlit ❤
Yeah sure do it🌻
Bro Crop.coss() code line not working it shows Crop.coss() not define and string don't convert into floot
have you got the fix?
@@yashikant5819 instead of crop.corr() , use crop.corr(numeric_only=True)
instead of crop.corr() , use crop.corr(numeric_only=True)
@@emre_trzgl it work thanks
Bhaiya isska documentation he kya
Video deklo bas saab udar pe, extra koi documents nehi he
@@knowledgedoctor3849 okay
Bhaiya ye kya bna diye ho genius ho kya...ek hi output k liye bss bna kr chhod diye...examiner khda hai bgl m jldi se shi code bhej do
Make Jarvis in python
Noted
Sir, could you please tell me how it works, and crop recommendations?
I explain it in the tutorial