Commands model:lasso/train¶
Train Lasso Model
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | model:lasso/train |
---|---|
arguments: | model : Model
frame : Frame
value_column : unicode
observation_columns : list
initial_weights : list (default=None)
num_iterations : int32 (default=500)
step_size : float64 (default=1.0)
reg_param : float64 (default=0.01)
mini_batch_fraction : float64 (default=1.0)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
- Train a Lasso model given an RDD of (label, features) pairs. We run a fixed number
- of iterations of gradient descent using the specified step size. Each iteration uses
- miniBatchFraction fraction of the data to calculate a stochastic gradient. The weights used
- in gradient descent are initialized using the initial weights provided.
Response¶
Status
200 OK
Body
Returns information about the command. See the Response Body for Get Command here below. It is the same.