Class: Soothsayer::TrainedModel
- Inherits:
-
Object
- Object
- Soothsayer::TrainedModel
- Defined in:
- lib/soothsayer/trained_model.rb
Class Method Summary collapse
- .analyze(model_id) ⇒ Object
- .delete(model_id) ⇒ Object
- .get(model_id) ⇒ Object
- .insert(params) ⇒ Object
- .list ⇒ Object
- .predict(model_id, params) ⇒ Object
- .update(model_id, params) ⇒ Object
Class Method Details
.analyze(model_id) ⇒ Object
28 29 30 |
# File 'lib/soothsayer/trained_model.rb', line 28 def analyze(model_id) API.get("/trainedmodels/#{id}/analyze", opts) end |
.delete(model_id) ⇒ Object
20 21 22 |
# File 'lib/soothsayer/trained_model.rb', line 20 def delete(model_id) API.delete("/trainedmodels/#{model_id}", opts) end |
.get(model_id) ⇒ Object
8 9 10 |
# File 'lib/soothsayer/trained_model.rb', line 8 def get(model_id) API.get("/trainedmodels/#{model_id}", opts) end |
.insert(params) ⇒ Object
12 13 14 |
# File 'lib/soothsayer/trained_model.rb', line 12 def insert(params) API.post("/trainedmodels", opts(params)) end |
.list ⇒ Object
4 5 6 |
# File 'lib/soothsayer/trained_model.rb', line 4 def list API.get("/trainedmodels/list", opts) end |
.predict(model_id, params) ⇒ Object
24 25 26 |
# File 'lib/soothsayer/trained_model.rb', line 24 def predict(model_id, params) API.post("/trainedmodels/#{model_id}/predict", opts(params)) end |
.update(model_id, params) ⇒ Object
16 17 18 |
# File 'lib/soothsayer/trained_model.rb', line 16 def update(model_id, params) API.put("/trainedmodels/#{model_id}", opts(params)) end |