-
Notifications
You must be signed in to change notification settings - Fork 2
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
7237dcc
commit 1987735
Showing
6 changed files
with
184 additions
and
2 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,29 @@ | ||
=================================== | ||
AntiNex Core Worker - API Reference | ||
=================================== | ||
|
||
Celery Worker | ||
============= | ||
|
||
Here is the Celery Worker's source code. | ||
|
||
.. automodule:: antinex_core.antinex_worker | ||
:members: setup_celery_logging,AntiNexCore,app,core,broker_url,train_queue_name,predict_queue_name,max_msgs,max_models | ||
|
||
Process Consumed Messages From the Queues | ||
========================================= | ||
|
||
The processor class processes any messages the worker consumes from the queue. | ||
|
||
.. automodule:: antinex_core.antinex_processor | ||
:members: AntiNexProcessor | ||
|
||
Send Results to the Broker | ||
========================== | ||
|
||
This method is responsible for publishing what the core's results were from the processed job. | ||
|
||
.. note:: The results must be sent back as a JSON dictionary for the REST API's Celery Workers to handle. | ||
|
||
.. automodule:: antinex_core.send_results_to_broker | ||
:members: send_results_to_broker |
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,36 @@ | ||
======= | ||
Scripts | ||
======= | ||
|
||
Standalone Processing Examples | ||
============================== | ||
|
||
Using Scaler Train and Test Helper | ||
---------------------------------- | ||
|
||
Train a DNN using the Scaler-Normalized AntiNex Django Dataset. This builds the train and test datasets using the ``build_scaler_train_and_test_datasets`` method from the internal modules. | ||
|
||
.. automodule:: antinex_core.scripts.antinex-scaler-django | ||
:members: dataset,model_backup_file,model_weights_file,model_json_file,model_image_file,footnote_text,image_title,show_predictions,features_to_process,min_scaler_range,max_scaler_range,test_size,batch_size,epochs,num_splits,loss,optimizer,metrics,histories,label_rules,build_model,model,scaler_res,train_scaler_df,sample_rows,kfold,results,scores,cm,sample_predictions,merged_predictions_df,predict_rows_df,fig,ax | ||
|
||
Using Manual Scaler Objects | ||
--------------------------- | ||
|
||
Train a DNN using the Scaler-Normalized AntiNex Django Dataset. This builds the train and test datasets manually to verify the process before editing the ``build_scaler_train_and_test_datasets`` method. | ||
|
||
.. automodule:: antinex_core.scripts.standalone-scaler-django | ||
:members: dataset,model_backup_file,model_weights_file,model_json_file,model_image_file,datanode,footnote_text,image_title,show_predictions,features_to_process,min_scaler_range,max_scaler_range,test_size,batch_size,epochs,num_splits,loss,optimizer,metrics,histories,label_rules,build_model,model,scaler_res,train_scaler_df,sample_rows,kfold,results,scores,cm,sample_predictions,merged_predictions_df,predict_rows_df,test_df,train_df,test_scaler,train_scaler,train_only_floats,test_only_floats,fig,ax | ||
|
||
Convert Bottom Rows from a CSV File into JSON | ||
============================================= | ||
|
||
When testing live DNN predictions you can use this utility script to print a few JSON-ready dictionaries out to ``stdout``. | ||
|
||
Usage: | ||
|
||
:: | ||
|
||
convert-bottom-rows-to-json.py -f <CSV File> -b <Optional - number of rows from the bottom> | ||
|
||
.. automodule:: antinex_core.scripts.convert-bottom-rows-to-json | ||
:members: parser,dataset,bottom_row_idx,output_predict_rows |
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