-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44c54e6
commit 340aa78
Showing
10 changed files
with
43 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from subprocess import check_output | ||
|
||
def has_unstaged_changes(): | ||
"""Returns True if the git repo in the current directory has unstaged changes.""" | ||
res=check_output("git status --porcelain",shell=True, universal_newlines=True) | ||
return ("\n" in res) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class ModelStub: | ||
# DELETE ME - Remove this class when you load a real model. This only | ||
# exists so the ModelWrapper works when creating an initial project. | ||
""" | ||
A placeholder for a real ML Model. Returns the number of features in each row. | ||
Example: | ||
ModelStub().predict([[1,2],[3,4]]) => [2,2] | ||
""" | ||
def predict(self,X): | ||
return list(map(lambda instance: len(instance), X)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 0 additions & 90 deletions
90
whisk/template/{{ cookiecutter.repo_name }}/scripts/install.py
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+37 Bytes
...emplate/{{ cookiecutter.repo_name }}/src/{{ cookiecutter.repo_name }}/artifacts/model.pkl
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters