Skip to content
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

RMG-NLP #1573

Merged
merged 2 commits into from
Apr 8, 2019
Merged

RMG-NLP #1573

merged 2 commits into from
Apr 8, 2019

Conversation

cgrambow
Copy link

@cgrambow cgrambow commented Apr 4, 2019

Motivation or Problem

While user satisfaction might be slightly increased upon seeing that model generation completed successfully, it could be substantially elevated upon reading an intellectually satisfying and thought-provoking quotation.

Description of Changes

To address this substantial issue, I trained a neural network on a large corpus of publicly available quotations to generate completely novel "quotes" and print them at the end of RMG jobs. The neural network is contained in a newly created external package called textgenrnn, which has been added to the RMG Anaconda cloud. The neural network weights are part of the package, so the change to RMG code is minimal.

Testing

Remake the RMG Anaconda environment and run a short RMG job to test that the quote prints correctly.

Reviewer Tips

This PR is ready for review, but hold off merging for a little while. I may want to update the weights in textgenrnn before this merges.

Colin Grambow added 2 commits April 4, 2019 17:48
Use a text-generating neural network trained on a large corpus of
quotes to generate completely novel quotes and print them at the end of
RMG jobs.
@cgrambow cgrambow self-assigned this Apr 4, 2019
@mliu49
Copy link
Contributor

mliu49 commented Apr 4, 2019

Nominated for PR of the year.

@codecov
Copy link

codecov bot commented Apr 4, 2019

Codecov Report

Merging #1573 into master will decrease coverage by 0.03%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1573      +/-   ##
==========================================
- Coverage   41.87%   41.83%   -0.04%     
==========================================
  Files         165      165              
  Lines       28004    28014      +10     
  Branches     5713     5713              
==========================================
- Hits        11726    11721       -5     
- Misses      15490    15504      +14     
- Partials      788      789       +1
Impacted Files Coverage Δ
rmgpy/rmg/main.py 21.88% <0%> (-0.19%) ⬇️
rmgpy/data/kinetics/family.py 58.27% <0%> (-0.3%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 45b8a13...1e17830. Read the comment docs.

@cgrambow
Copy link
Author

cgrambow commented Apr 6, 2019

Weights have been updated. This is good to go.

@mliu49 mliu49 merged commit a5ab75c into master Apr 8, 2019
@mliu49 mliu49 deleted the quotegen branch April 8, 2019 20:20
@mliu49 mliu49 mentioned this pull request May 15, 2019
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants