Coder Social home page Coder Social logo

mljar / mljar-api-r Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 8.0 106 KB

R wrapper for MLJAR API

Home Page: https://mljar.com

License: Other

R 100.00%
machine-learning machine-learning-api r predictive-analytics predictive-modeling prediction-algorithm

mljar-api-r's Introduction

Build Status codecov

mljar-api-R

A simple R wrapper for mljar.com API. It allows MLJAR users to create Machine Learning models with few lines of code:

library(mljar)

model <- mljar_fit(x.training, y.training, validx=x.validation, validy=y.validation,
                proj_title="Project title", exp_title="experiment title",
                algorithms = c("logreg"), metric = "logloss")

predicted_values <- mljar_predict(model, x.to.predict, "Project title")

That's all folks! Yeah, I know, this makes Machine Learning super easy! You can use this code for following Machine Learning tasks:

  • Binary classification (your target has only two unique values)
  • Regression (your target value is continuous)
  • More is coming soon!

How to install

You can install mljar directly from CRAN:

install.packages("mljar")

Alternatively, you can install the latest development version from GitHub using devtools:

devtools::install_github("mljar/mljar-api-R")

How to use it

  1. Create an account at mljar.com and login.
  2. Please go to your users settings (top, right corner).
  3. Get your token, for example 'exampleexampleexample'.
  4. Set environment variable MLJAR_TOKEN with your token value in shell:
export MLJAR_TOKEN=exampleexampleexample

or directly in RStudio:

Sys.setenv(MLJAR_TOKEN="examplexampleexample")
  1. That's all, you are ready to use MLJAR in your R code!

What's going on?

  • This wrapper allows you to search through different Machine Learning algorithms and tune each of the algorithm.
  • By searching and tuning ML algorithm to your data you will get very accurate model.
  • By calling function mljar_fit you create new project and start experiment with models training. All your results will be accessible from your mljar.com account - this makes Machine Learning super easy and keeps all your models and results in beautiful order. So, you will never miss anything.
  • All computations are done in MLJAR Cloud, they are executed in parallel. So after calling mljar_fit method you can switch your computer off and MLJAR will do the job for you!
  • I think this is really amazing! What do you think? Please let us know at [email protected].

Examples

Soon

Testing

To run tests use simple command in your R session:

devtools::test()

mljar-api-r's People

Contributors

dokato avatar maksymiuks avatar pplonski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mljar-api-r's Issues

Error: lexical error: invalid char in json text.

Hello, I've been getting the following when trying to us a few functions (get_model, get_projects()). It could 100% be my own mistake, but wanted to bring it up just in case!

Error: lexical error: invalid char in json text.
                                       <!doctype html>  <html lang="en
                     (right here) ------^

mljar model class

First of all, very nice api, I love to use it.

But I have one small problem. Can You please change class of object returned by mljar_fit to something that will stright away indicate on mljar? Right now it is simple list and it is hard for me to check if given model is indeed mljar model.

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.