Giter Club home page Giter Club logo

big_ml's People

Contributors

rossmeissl avatar seamusabshere avatar troelskn avatar vigosan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

big_ml's Issues

add source upload by url

curl https://bigml.io/andromeda/source?$BIGML_AUTH \
    -X "POST" \
    -H "content-type: application/json" \
    -d '{"remote": "https://static.bigml.com/csv/iris.csv"}'

Dev mode does not work when installing gem to system

Need to update the version that is installed using gem install big_ml . The newest version includes in client.rb:

VALID_OPTIONS_KEYS     = [:username, :api_key, :dev_mode]

However, the version from gem install is:

VALID_OPTIONS_KEYS     = [:username, :api_key]

update README

With installation information, how to run test suit and use case, also add more information from BIGML

Support for development mode

Have the ability to configure the gem for use the development mode, f.e

BigML.configure do |c|
  c.username = 'foo'
  c.api_key = 'bar'
  c.dev = true
end

push to rubygems

Make it go free, need to version correctly and update the gemspec

method all returns an Array

And you can't inspect right now the status of the request, make sure we provide a mechanism for improving the visibility over there.

Batch prediction

Hi,

Documentation is a bit sparse, so I'm having trouble figuring out if I'm taking the right approach here. To predict a single data point, I have the following working:

  desc "Predict categories"
  task :predict => :environment do
    model = BigML::Model.find("...")
    product = Product.find(1)
    fields = {
      "000000" => product.name,
      "000001" => product.brand_name,
      "000002" => product.description
    }
    prediction = BigML::Prediction.create(model.resource, :input_data => fields)
    puts "#{prediction.attrs['output']} (#{prediction.attrs['confidence']})"
    prediction.destroy
  end

But if I want to predict en masse, this seems rather inefficient. What I'd like to do is to predict a multiple inputs at once. E.g.:

  desc "Predict categories"
  task :predict => :environment do
    model = BigML::Model.find("...")
    input_data = []
    Product.each do |product|
      input_data << {
        "000000" => product.name,
        "000001" => product.brand_name,
        "000002" => product.description
      }
    end
    prediction = BigML::Prediction.create(model.resource, :input_data => input_data)
    ...
    prediction.destroy
  end

But that doesn't work. Should I create a dataset in this case? And how would the code for that look?

Add Source upload inline data

curl https://bigml.io/andromeda/source?$BIGML_AUTH \
    -X "POST" \
    -H "content-type: application/json" \
    -d '{"data": "a,b,c,d\n1,2,3,4\n5,6,7,8"}'

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.