GithubHelp home page GithubHelp logo

siddhibirla / covid-19 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from forrestbao/covid-19

0.0 0.0 0.0 4.12 MB

License: BSD 3-Clause "New" or "Revised" License

JavaScript 1.24% HTML 3.38% CSS 1.83% TypeScript 93.55%

covid-19's Introduction

Triaging moderate COVID-19 and other viral pneumonia from routine blood tests

github pages

Ready-to-use trained models

Trained SVM models are placed under models folders.

Scikit-learn's SVC model: The scaler and estimator are pickled into a pickle file. Suppose X_raw below is an array-like variable representing a 1x15 feature vector. Then this can be your Python snippet:

import pickle
[scaler, estimator] = pickle.load(open('sklearn_scaler_and_model.p', 'rb'))
X_scaled = scaler.transform(X_raw)
estimator.predict(X_scaled)

libsvm model: The scaler file is mild_vs_viral.scaler and the model file is mild_vs_viral.model. Suppose a 15-d feature vector is placed in a file test.input in svmlight format. Then this can be your commands:

svm-scale -r mild_vs_viral.scaler test.input > test.scaled
svm-predict test.scaled mild_vs_viral.model test.prediction_output 

The scaler file is loaded via the -r option when scaling data in svm-scale. The model file is loaded as a mandatory argument when making predictions in svm-predict.

Help

If you have any questions, please contact Forrest Bao at forrest dot bao @ gmail dot com, or create an issue ticket.

covid-19's People

Contributors

himself65 avatar forrestbao avatar lidangzzz avatar siddhibirla 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.