|
25 | 25 |
|
26 | 26 |
|
27 | 27 | class LinearLearner(AmazonAlgorithmEstimatorBase): |
28 | | - """Placeholder docstring""" |
| 28 | + """A supervised learning algorithms used for solving classification or regression problems. |
| 29 | +
|
| 30 | + For input, you give the model labeled examples (x, y). x is a high-dimensional vector and |
| 31 | + y is a numeric label. For binary classification problems, the label must be either 0 or 1. |
| 32 | + For multiclass classification problems, the labels must be from 0 to num_classes - 1. For |
| 33 | + regression problems, y is a real number. The algorithm learns a linear function, or, for |
| 34 | + classification problems, a linear threshold function, and maps a vector x to an approximation |
| 35 | + of the label y.""" |
29 | 36 |
|
30 | 37 | repo_name = "linear-learner" |
31 | 38 | repo_version = 1 |
@@ -468,10 +475,19 @@ class LinearLearnerModel(Model): |
468 | 475 | def __init__(self, model_data, role, sagemaker_session=None, **kwargs): |
469 | 476 | """ |
470 | 477 | Args: |
471 | | - model_data: |
472 | | - role: |
473 | | - sagemaker_session: |
474 | | - **kwargs: |
| 478 | + model_data (str): The S3 location of a SageMaker model data |
| 479 | + ``.tar.gz`` file. |
| 480 | + role (str): An AWS IAM role (either name or full ARN). The Amazon |
| 481 | + SageMaker training jobs and APIs that create Amazon SageMaker |
| 482 | + endpoints use this role to access training data and model |
| 483 | + artifacts. After the endpoint is created, the inference code |
| 484 | + might use the IAM role, if it needs to access an AWS resource. |
| 485 | + sagemaker_session (sagemaker.session.Session): Session object which |
| 486 | + manages interactions with Amazon SageMaker APIs and any other |
| 487 | + AWS services needed. If not specified, the estimator creates one |
| 488 | + using the default AWS configuration chain. |
| 489 | + **kwargs: Keyword arguments passed to the ``FrameworkModel`` |
| 490 | + initializer. |
475 | 491 | """ |
476 | 492 | sagemaker_session = sagemaker_session or Session() |
477 | 493 | image_uri = image_uris.retrieve( |
|
0 commit comments