GithubHelp home page GithubHelp logo

bridgecrew-perf7 / heroku_deployment_practice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tusharpatil87/heroku_deployment_practice

0.0 0.0 0.0 226 KB

Practice Project to deploy ML model on Heroku Platform with the help of FLASK framework:- Business Problem/Goal of the ML project: To Determine whether patient has malignant tumor or benign tumor was the semi-automated and lengthy process in practice. The older process leads to manual intervention in result of threats and challenges like bad accuracy, extra time taken, over-wait, over processing, duplicasy of works, waiting time in the cycle. To overcome from these challenges and threats using machine learning technique to create Cancer Detection ML model to classify malignant and benign tumor from the given features.

Python 35.80% HTML 64.20%

heroku_deployment_practice's Introduction

Final App link: https://breast-cancer-demo-predictor.herokuapp.com

"""Practice Project to deploy ML model on Heroku Platform with the help of FLASK framework""" """Business Problem/Goal of the ML project: To Determine whether patient has malignant tumor or benign tumor was the semi-automated and lengthy process in practice. The older process leads to manual intervention in result of threats and challenges like bad accuracy, exra time taken, overwait, overprocessing, duplicasy of works, waiting time in the cycle. To overcome from these challenges and threats using machine learning technique to create Cancer Detection ML model to classify malignant and benign tumor from the given features."""

import numpy as np import pandas as pd from flask import Flask, request, render_template import pickle

app = Flask(name) model = pickle.load(open('Model_Cancer', 'rb'))

@app.route('/') def home(): return render_template('index.html')

@app.route('/predict',methods=['POST']) def predict(): input_features = [float(x) for x in request.form.values()] features_value = [np.array(input_features)]

features_name = ['mean radius', 'mean texture', 'mean perimeter', 'mean area',
   'mean smoothness', 'mean compactness', 'mean concavity',
   'mean concave points', 'mean symmetry', 'mean fractal dimension',
   'radius error', 'texture error', 'perimeter error', 'area error',
   'smoothness error', 'compactness error', 'concavity error',
   'concave points error', 'symmetry error', 'fractal dimension error',
   'worst radius', 'worst texture', 'worst perimeter', 'worst area',
   'worst smoothness', 'worst compactness', 'worst concavity',
   'worst concave points', 'worst symmetry', 'worst fractal dimension']

df = pd.DataFrame(features_value, columns=features_name)
output = model.predict(df)
    
if output == 0:
    res_val = "Breast Cancer"
else:
    res_val = "No Breast Cancer"
    

return render_template('index.html', prediction_text='Patient has {}'.format(res_val))

if name == "main": app.run()

"""After Model Deployment need to Monitor the Model and maintain necessary retrainings to achive maximum accuracy. """ """Conclusion: With the help of ML Model we can determine whether patient has malignant tumor or benign tumor and eliminate the older lengthy processes which was in practice. With the help of ML Model we can reduce the manual intervention and eliminate the threats and challenges like error in prediction, exra time taken, overwait, overprocessing, duplicasy of works, waiting time in the cycle."""

heroku_deployment_practice's People

Contributors

tusharpatil87 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.