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

Add training #125

Closed
wants to merge 3 commits into from
Closed

Add training #125

wants to merge 3 commits into from

Conversation

nyee
Copy link
Contributor

@nyee nyee commented Aug 31, 2016

More scripts to make speed up adding training reactions

@@ -192,7 +194,18 @@
" reactions = reactionDict[familyName]\n",
" print 'reactions.py previously has {} rxns. Now adding {} new rxn(s).'.format(len(trainingDatabase.entries.values()), len(reactions))\n",
" print '================='\n",
" kineticFamily.saveTrainingReactions(reactions, shortDesc='Training reaction from kinetics library: {0}'.format(libraryName))"
" for reaction in reactions:\n",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to self: I wrote this for loop workaround to solve the issue that family.saveTrainingReactions doesn't seem to allow different meta-data (shortDesc, reference, referenceType, longDesc) per reactions. The code now labels every single reaction with the same index as well as creates an extra line break after every entry.
Some combination of this causes the training reactions to be un-usable without manual edits

Both of these are taken account into the family. saveTrainingReactions. My initial thoughts is to change this function to allow different meta-data rather than trying to debug the work-around.

nyee added 3 commits June 1, 2017 14:32
…brary

Specifically changed the way it reads comments, so that it can copy shortDesc and longDesc from the library entry. This is needed in the case where we make the library as an intermediate to making training reactions.
@mliu49
Copy link
Contributor

mliu49 commented May 22, 2018

The convertKineticsLibraryToTrainingReactions.ipynb notebook will be moved to RMG-Py. The changes here have been integrated into ReactionMechanismGenerator/RMG-Py#1373.

The createKineticsLibrary.py script has been moved to the Work-In-Progress_scripts repo.

@mliu49 mliu49 closed this May 22, 2018
@mliu49 mliu49 deleted the addTraining branch May 31, 2018 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants