'How to read a csv file and execute a batch prediction from each row of data using DJANGO
here is the content of my csv file, I want to calculate the prediction of each row from column CC102,CS111,MATH103
"ID No.","CC102","CS111","MATH103" "bg201802133","2","1.25","1" "bg201802356","3","1.50","2"
and this is how I fetch my data from an html form to views.py to predict data:
CC102 = request.POST['CC102']
CS111 = request.POST['CS111']
MATH103 = request.POST['MATH103']
prediction = model2.predict([[CC102,CS111,MATH103]])
studentID = request.POST['studentID']
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
