Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 3535d4a

Browse files
committed
Merge remote-tracking branch 'origin/master' into run-restored
2 parents 15da0d8 + 5370cfa commit 3535d4a

File tree

9 files changed

+79
-67
lines changed

9 files changed

+79
-67
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,5 @@ ENV/
104104
.vscode/*
105105

106106
.idea
107+
paperspace-python.zip
108+
*.env

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Paperspace Python
22
=================
33

4-
Release 0.2.0a1
4+
Release 0.2.0a2
55

66
See [releasenotes.md](https://github.com/Paperspace/paperspace-python/blob/master/releasenotes.md) for details on the current release, as well as release history.
77

paperspace/cli/experiments.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ def common_experiments_create_options(f):
108108
def common_experiment_create_multi_node_options(f):
109109
options = [
110110
click.option(
111-
"--experimentTypeId",
112-
"experimentTypeId",
111+
"--experimentType",
112+
"experimentType",
113113
type=ChoiceType(MULTI_NODE_EXPERIMENT_TYPES_MAP, case_sensitive=False),
114114
required=True,
115-
help="Experiment Type ID",
115+
help="Experiment Type",
116116
),
117117
click.option(
118118
"--workerContainer",
@@ -249,7 +249,7 @@ def create_multi_node(api_key, **kwargs):
249249
@common_experiments_create_options
250250
@common_experiments_create_single_node_options
251251
def create_single_node(api_key, **kwargs):
252-
kwargs["experimentTypeId"] = constants.ExperimentType.SINGLE_NODE
252+
kwargs["experimentType"] = constants.ExperimentType.SINGLE_NODE
253253
del_if_value_is_none(kwargs)
254254
experiments_api = client.API(config.CONFIG_EXPERIMENTS_HOST, api_key=api_key)
255255
command = experiments_commands.CreateExperimentCommand(api=experiments_api)
@@ -270,7 +270,7 @@ def create_and_start_multi_node(api_key, **kwargs):
270270
@common_experiments_create_options
271271
@common_experiments_create_single_node_options
272272
def create_and_start_single_node(api_key, **kwargs):
273-
kwargs["experimentTypeId"] = constants.ExperimentType.SINGLE_NODE
273+
kwargs["experimentType"] = constants.ExperimentType.SINGLE_NODE
274274
del_if_value_is_none(kwargs)
275275
experiments_api = client.API(config.CONFIG_EXPERIMENTS_HOST, api_key=api_key)
276276
command = experiments_commands.CreateAndStartExperimentCommand(api=experiments_api)

paperspace/commands/experiments.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _get_objects(self, response, kwargs):
106106

107107

108108
def _make_details_table(experiment):
109-
if experiment["experimentTypeId"] == constants.ExperimentType.SINGLE_NODE:
109+
if experiment["experimentType"] == constants.ExperimentType.SINGLE_NODE:
110110
data = (
111111
("Name", experiment["templateHistory"]["params"].get("name")),
112112
("ID", experiment.get("handle")),
@@ -121,7 +121,7 @@ def _make_details_table(experiment):
121121
("Model Type", experiment["templateHistory"]["params"].get("modelType")),
122122
("Model Path", experiment["templateHistory"]["params"].get("modelPath")),
123123
)
124-
elif experiment["experimentTypeId"] in (constants.ExperimentType.GRPC_MULTI_NODE,
124+
elif experiment["experimentType"] in (constants.ExperimentType.GRPC_MULTI_NODE,
125125
constants.ExperimentType.MPI_MULTI_NODE):
126126
data = (
127127
("Name", experiment["templateHistory"]["params"].get("name")),
@@ -131,7 +131,7 @@ def _make_details_table(experiment):
131131
("Cluster ID", experiment["templateHistory"]["params"].get("clusterId")),
132132
("Experiment Env", experiment["templateHistory"]["params"].get("experimentEnv")),
133133
("Experiment Type",
134-
constants.ExperimentType.get_type_str(experiment["templateHistory"]["params"].get("experimentTypeId"))),
134+
constants.ExperimentType.get_type_str(experiment["templateHistory"]["params"].get("experimentType"))),
135135
("Model Type", experiment["templateHistory"]["params"].get("modelType")),
136136
("Model Path", experiment["templateHistory"]["params"].get("modelPath")),
137137
("Parameter Server Command", experiment["templateHistory"]["params"].get("parameter_server_command")),
@@ -149,7 +149,7 @@ def _make_details_table(experiment):
149149
("Workspace URL", experiment["templateHistory"]["params"].get("workspaceUrl")),
150150
)
151151
else:
152-
raise ValueError("Wrong experiment type: {}".format(experiment["experimentTypeId"]))
152+
raise ValueError("Wrong experiment type: {}".format(experiment["experimentType"]))
153153

154154
ascii_table = terminaltables.AsciiTable(data)
155155
table_string = ascii_table.table

paperspace/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.2.0a1"
1+
version = "0.2.0a2"

releasenotes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Paperspace Python Release Notes
22

3+
# Release Notes for 0.2.0a2
4+
### New features
5+
* partial support for hyperparameter tuning
6+
* prompt for apiKey if not provided
7+
* deprecate `login` command
8+
* `--ignoreFiles` option for `experiments create`
9+
* `--ignoreFiles` and `--workspace none` options for `jobs create`
10+
### Fixes
11+
* restore apiKey command
12+
313
# Release Notes for 0.2.0a1
414
### New features
515
* colorful error and help messages

0 commit comments

Comments
 (0)