-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Added: Gluon recommender system notebook #218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I can review notebooks written in Gluon. I'll take this review on myself. |
@djarpin could you please add me to the reviewers? |
Thanks @orchidmajumder . I've added you as a reviewer. |
self.dropout = gluon.nn.Dropout(dropout_p) | ||
self.dense = gluon.nn.Dense(num_emb, activation='relu') | ||
|
||
def forward(self, users, items): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use hybrid_forward. The operation here is simple and should be easily hybridized. And then use net.hybridize() before starting the training.
with mx.autograd.record(): | ||
output = net(user, item) | ||
loss = loss_function(output, label) | ||
loss.backward() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: loss.backward() does not need to be within autograd block.
output = net(user, item) | ||
loss = loss_function(output, label) | ||
loss.backward() | ||
net.collect_params().values() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line seems redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Please take care of the network hybridization before pushing to the main repo.
Thanks @orchidmajumder ! Updates and fixes made. |
* Flatten the JSON configuration format. See https://quip-amazon.com/ja7nAmXMVE5p for details. I rewrote the JSON for all the tests and ran them to ensure they still pass. * Flatten the JSON configuration format. See https://quip-amazon.com/ja7nAmXMVE5p for details. I rewrote the JSON for all the tests and ran them to ensure they still pass. * Undo formatting. * Undo formatting more * Fix typo that got reverted with the formatting revert * Fix JSON typo * Address Rahul's refactoring comments * Ensure we default to global mode if no specific train/eval/predict setting * Update .gitignore * Rewrite the logic for handling defaults. CollectionParameters default to HookParameters, and HookParameters default to the defaults. * Added test for merging logic * Fix failing test * Remove trailing comma in JSON
* initial commit * minor fix * minor fixes * add inference experiment notebook add inference experiment notebook * Add shadow endpoint notebook (aws#215) * initial commit * add inference experiment notebook add inference experiment notebook Co-authored-by: Qingwei Li<[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> * Revert "Add shadow endpoint notebook (aws#215)" (aws#218) This reverts commit b6d2fd203f7f85670478556e902ad2bb86a1a882. * reformat * reviewer's comments addressed * clear output * fix and reformat nb * reformat nb * remove notebook * markdown change Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> Co-authored-by: EC2 Default User <[email protected]>
* initial commit * minor fix * minor fixes * add inference experiment notebook add inference experiment notebook * Add shadow endpoint notebook (aws#215) * initial commit * add inference experiment notebook add inference experiment notebook Co-authored-by: Qingwei Li<[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> * Revert "Add shadow endpoint notebook (aws#215)" (aws#218) This reverts commit b6d2fd203f7f85670478556e902ad2bb86a1a882. * reformat * reviewer's comments addressed * clear output * fix and reformat nb * reformat nb * remove notebook * markdown change * Alwin's edit add edits from Alwin * reformat * change folder name Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: atqy <[email protected]> Co-authored-by: atqy <[email protected]>
* initial commit * minor fix * minor fixes * add inference experiment notebook add inference experiment notebook * Add shadow endpoint notebook (aws#215) * initial commit * add inference experiment notebook add inference experiment notebook Co-authored-by: Qingwei Li<[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> * Revert "Add shadow endpoint notebook (aws#215)" (aws#218) This reverts commit b6d2fd203f7f85670478556e902ad2bb86a1a882. * reformat * reviewer's comments addressed * clear output * fix and reformat nb * reformat nb * remove notebook * markdown change Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> Co-authored-by: EC2 Default User <[email protected]>
* initial commit * minor fix * minor fixes * add inference experiment notebook add inference experiment notebook * Add shadow endpoint notebook (aws#215) * initial commit * add inference experiment notebook add inference experiment notebook Co-authored-by: Qingwei Li<[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> * Revert "Add shadow endpoint notebook (aws#215)" (aws#218) This reverts commit b6d2fd203f7f85670478556e902ad2bb86a1a882. * reformat * reviewer's comments addressed * clear output * fix and reformat nb * reformat nb * remove notebook * markdown change * Alwin's edit add edits from Alwin * reformat * change folder name Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: atqy <[email protected]> Co-authored-by: atqy <[email protected]>
* Adding example for native AutoML step in SageMaker Pipelines. (#211) * Adding example for native AutoML step in SageMaker Pipelines. * Adding SageMaker Geospatial example for Digital Farming (#213) * Adding digital-farming-pipelines notebooks * Adding digital-farming-pipelines notebooks * Update pipelines-sagemaker-geospatial.ipynb * Update pipelines-sagemaker-geospatial.ipynb * Update pipelines-sagemaker-geospatial.ipynb * Update pipelines-sagemaker-geospatial.ipynb * Adding digital-farming-pipelines notebooks * Adding digital-farming-pipelines notebooks * Adding code folder * Adding Lambda function * Adjusting notebook * Adjuting roles * Adjusted roles * Updated notebooks * Updated notebooks format * Adding Scheduled Notebook (Keynote2) (#216) * * Add scheduled notebook example * Update notebook * Format * Change image dir * Resolve comments. * Resolve comments. * Resolve comments. * Add example notebook for model governance model card (#217) Co-authored-by: Zhenshan Jin <[email protected]> * shadow endpoint (#219) * initial commit * minor fix * minor fixes * add inference experiment notebook add inference experiment notebook * Add shadow endpoint notebook (#215) * initial commit * add inference experiment notebook add inference experiment notebook Co-authored-by: Qingwei Li<[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> * Revert "Add shadow endpoint notebook (#215)" (#218) This reverts commit b6d2fd203f7f85670478556e902ad2bb86a1a882. * reformat * reviewer's comments addressed * clear output * fix and reformat nb * reformat nb * remove notebook * markdown change Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> Co-authored-by: EC2 Default User <[email protected]> * rename sagemaker-shadow-endpoint folder * upgrade pip packages for reinvent * install from reinvent wheels temporarily * Keynote2 rtd (#224) * remove --no-deps tags from notebook * configure rst files for reinvent notebooks + fix any rtd leveling issues * make corrections * reformat * updated shadow_variants with Alwin's work (#225) * initial commit * minor fix * minor fixes * add inference experiment notebook add inference experiment notebook * Add shadow endpoint notebook (#215) * initial commit * add inference experiment notebook add inference experiment notebook Co-authored-by: Qingwei Li<[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> * Revert "Add shadow endpoint notebook (#215)" (#218) This reverts commit b6d2fd203f7f85670478556e902ad2bb86a1a882. * reformat * reviewer's comments addressed * clear output * fix and reformat nb * reformat nb * remove notebook * markdown change * Alwin's edit add edits from Alwin * reformat * change folder name Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: atqy <[email protected]> Co-authored-by: atqy <[email protected]> * add region tag to allow download from opt-in regions (#226) * add region tag to allow download from opt-in regions * add region tag to allow download from opt-in regions * Trigger Build Co-authored-by: Marcelo Aberle <[email protected]> Co-authored-by: Antonio Rodriguez <[email protected]> Co-authored-by: Sean Morgan <[email protected]> Co-authored-by: Zhenshan Jin <[email protected]> Co-authored-by: Zhenshan Jin <[email protected]> Co-authored-by: Qingwei Li <[email protected]> Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: Shreya Pandit <[email protected]> Co-authored-by: Qingwei Li <[email protected]> Co-authored-by: EC2 Default User <[email protected]>
No description provided.