06999395c7898abd4bc9ac3bae57d3516f7bca92,tests/test_server.py,,test_stack_training,#Any#Any#Any#Any#Any#,253
Before Change
default_stack_config,
default_nlu_data
):
training_namespace = dict(
domain=default_domain_path,
config=default_stack_config,
data=[default_nlu_data, default_stories_file],
out=".",
force=False
)
response = app.post("/jobs", json=training_namespace)
assert response.status_code == 200
assert response.get_json()["info"] == "new model trained"
After Change
tempdir = tempfile.mkdtemp()
model_path = os.path.join(tempdir, "model.tar.gz")
with open(model_path, "wb") as f:
f.write(response.get_data())
// unpack model and ensure fingerprint is present
model_path = unpack_model(model_path)
assert os.path.exists(os.path.join(model_path, "fingerprint.json"))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: RasaHQ/rasa
Commit Name: 06999395c7898abd4bc9ac3bae57d3516f7bca92
Time: 2019-03-14
Author: ric.wkr@gmail.com
File Name: tests/test_server.py
Class Name:
Method Name: test_stack_training
Project Name: facebookresearch/visdom
Commit Name: 1753e20f4ba805cb94d3646d472c53bc8d990a2a
Time: 2017-10-05
Author: jju@fb.com
File Name: py/server.py
Class Name: PostHandler
Method Name: post
Project Name: astroML/astroML
Commit Name: a1292078d2016dff4228fff869430ab4ace79b6b
Time: 2019-01-04
Author: bsipocz@gmail.com
File Name: astroML/datasets/sdss_corrected_spectra.py
Class Name:
Method Name: fetch_sdss_corrected_spectra