Everest1508 / simple-disease-predication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disease Prediction

Gives the probable diagnosis after entering the symptoms

Model

The data set has 132 symptoms which lead to the cause of 41 diseases.

RFC

clf_rf = RandomForestClassifier(random_state=43)
clr_rf = clf_rf.fit(x_train,y_train)

Accuracy

The model has an accuracy of 97.62%

Flask

POST method

    if request.method=='POST':
        col=x_test.columns
        inputt = [str(x) for x in request.form.values()]

        b=[0]*132
        for x in range(0,132):
            for y in inputt:
                if(col[x]==y):
                    b[x]=1

HTML

Jinja

{{pred}}

About


Languages

Language:HTML 63.1%Language:Python 30.8%Language:CSS 3.8%Language:JavaScript 1.9%Language:Procfile 0.3%