-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added chatgpt func * added check on api key * init ai drive refactor * ai_drive refactor * added file upload failed message * completed ai_drive refactor * fixed old git repo links * kernel fix * minor improv * msg using json * using if main * fixed train types * kernel fix on using TrainSpace data schema * fixed trainspace data schema in ai_drive * input_df can be None issue * moved input_df up * enum read name * obj detection * zip_file -> img_file * removed **trainspacedata where unneeded: * fixed dict * minor * removed createExecution * removed writetoq in backend * 🎨 Format Python code with psf/black * Prettified Code! * parse deep user arch fix * 🎨 Format Python code with psf/black * mapping for nn layers * generalizing make train bucket path * 🎨 Format Python code with psf/black * minor pydocs * check on layers length for ML * minor pydocs * added logger to env * minor tuple mismatcjh * added logger to kernel * 🎨 Format Python code with psf/black * added logger to ai drive and driver * abstraction in kernel's router() function * 🎨 Format Python code with psf/black * using main() func Co-authored-by: karkir0003 <[email protected]> * 🎨 Format Python code with psf/black * using if main * 🎨 Format Python code with psf/black * fixed obj detection format * removed all exeution_db * added colored logs * fix to python test parse arch * minor comment fix * dynamo db util fix for json objects --------- Co-authored-by: farisdurrani <[email protected]> Co-authored-by: karkir0003 <[email protected]>
- Loading branch information
1 parent
ad5ea3d
commit d5ad36c
Showing
30 changed files
with
453 additions
and
516 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,3 +208,6 @@ dlp-terraform/**/.terraform/ | |
|
||
# SSH keys | ||
dlp-ssh.key | ||
|
||
# Firebase Admin API key | ||
backend/dlp-firebase-admin.json |
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 |
---|---|---|
|
@@ -31,27 +31,6 @@ if __name__ == "__main__": | |
print(6, delete_dynamo_item("trainspace", "ergsdf")) | ||
``` | ||
|
||
## execution_db.py | ||
|
||
```py | ||
if __name__ == "__main__": | ||
print(1) | ||
print(2, getAllUserExecutionData("8hDeAbdZ9Lg301QFGdEYYeAq4Kw2")) | ||
print(3, getExecutionData("exfddc9ad2666d31cae1790167aefc9aa34eb5d06a28e1805e8fa8881845d463a8")) | ||
print(3, updateExecutionData("exfddc9ad2666d31cae1790167aefc9aa34eb5d06a28e1805e8fa8881845d463a8", { | ||
"timestamp": datetime.now().isoformat(), | ||
})) | ||
print(4, createExecutionData( | ||
ExecutionData( | ||
execution_id=str(random.random()), | ||
data_source='TABULAR', | ||
name='hola', | ||
status='QUEUED', | ||
timestamp=str(datetime.now().isoformat()), | ||
user_id='bleh' | ||
))) | ||
``` | ||
|
||
## trainspace.py | ||
|
||
```py | ||
|
@@ -128,6 +107,40 @@ if __name__ == "__main__": | |
) | ||
), | ||
) | ||
data = { | ||
"trainspace_id": "000033", | ||
"uid": "00001", | ||
"name": "My Trainspace", | ||
"data_source": "TABULAR", | ||
"dataset_data": {"name": "IRIS", "is_default_dataset": True}, | ||
"parameters_data": { | ||
"target_col": "target", | ||
"features": [ | ||
"sepal length (cm)", | ||
"sepal width (cm)", | ||
"petal length (cm)", | ||
"petal width (cm)", | ||
], | ||
"problem_type": "CLASSIFICATION", | ||
"criterion": "CELOSS", | ||
"optimizer_name": "SGD", | ||
"shuffle": True, | ||
"epochs": 5, | ||
"test_size": 0.2, | ||
"batch_size": 20, | ||
"layers": [ | ||
{"value": "LINEAR", "parameters": [10, 3]}, | ||
{"value": "RELU", "parameters": []}, | ||
{"value": "LINEAR", "parameters": [3, 10]}, | ||
{"value": "SOFTMAX", "parameters": [-1]}, | ||
], | ||
}, | ||
"review_data": { | ||
"notification_email": "[email protected]", | ||
"notification_phone_number": "", | ||
}, | ||
} | ||
print(6, TrainspaceData(**(data))) | ||
``` | ||
|
||
## userprogress_db.py | ||
|
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.