Git Product home page Git Product logo

datascience_exam's Introduction

求人原稿の応募数予測

概要

求人原稿に関するデータからその応募数を予測する機械学習モデルの予測結果を出力するWebアプリをFlaskで構築し、Herokuに公開する。

使い方

  1. Webページにアクセスする。
  2. 「ファイルを選択」をクリックして、テストデータを選択する。
  3. 「アップロード」ボタンをクリックして、ファイルをアップロードする。
  4. 推論が終わるまでしばらく待つ。
  5. 推論が終わると、「ダウンロード」ボタンが表示されるので、ボタンをクリックしcsv形式の出力結果をダウンロードする。

ライブラリ

  • Flask 1.1.2
  • lightgbm 3.1.1
  • numpy 1.21.2
  • pandas 1.3.5
  • scikit-learn 1.0.2
  • xgboost 1.5.0
  • catboost 0.26.1

起動方法

git clone https://github.com/Fumiya-Matsumoto/datascience_exam.git
cd datascience_exam
docker-compose up --build

※ Githubには学習データを上げてないので、このリポジトリをクローンして実行しても、アプリは動きません。datascience_exam/app/inputの中に学習データをtrain_x.csvという名前で保存する必要があります。

Herokuに公開する方法

まずは、Herokuへログインする。

heroku login

上記コマンドを実行すると、Herokuのログイン画面がブラウザ上に開かれるため、ログインする。

続いて、Heroku上にアプリケーションを作成する

heroku create APP_NAME

Heroku上のGitにpushすることがデプロイのトリガーとなるため、リモートリポジトリに追加する。

heroku git:remote -a APP_NAME

コンテナを用いることをスタックに指定しておく。

heroku stack:set container

Heroku上にPushする。

git push heroku master

これでデプロイが完了する。

datascience_exam's People

Contributors

fumiya-matsumoto avatar

Watchers

 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.