Changeset 82e5fb for src/Actions


Ignore:
Timestamp:
May 25, 2021, 11:04:50 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, Candidate_v1.7.1, stable
Children:
91793c
Parents:
889067e
git-author:
Frederik Heber <frederik.heber@…> (05/25/21 21:55:59)
git-committer:
Frederik Heber <frederik.heber@…> (05/25/21 23:04:50)
Message:

Added option error-file to fit potential actions.

Location:
src/Actions/PotentialAction
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/PotentialAction/FitCompoundPotentialAction.cpp

    r889067e r82e5fb  
    104104      graph,
    105105      params.training_file.get(),
     106      params.error_file.get(),
    106107      params.max_iterations.get(),
    107108      params.threshold.get(),
  • src/Actions/PotentialAction/FitCompoundPotentialAction.def

    r889067e r82e5fb  
    2323// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    2424// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
    25 #define paramtypes (boost::filesystem::path)(std::vector<const element *>)(unsigned int)(double)(unsigned int)
    26 #define paramtokens ("training-file")("fragment-charges")("take-best-of")("set-threshold")("set-max-iterations")
    27 #define paramdescriptions ("optional file to write training data to")("charges specifying the fragment")("take the best among this many approximations")("Require L2 error to be smaller than threshold, overrides number of attempts")("sets the maximum number of iterations spent on the optimization of parameters")
    28 #define paramdefaults (PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(PARAM_DEFAULT(3))(PARAM_DEFAULT(1.))(PARAM_DEFAULT(100))
    29 #define paramreferences (training_file)(fragment)(best_of_howmany)(threshold)(max_iterations)
     25#define paramtypes (boost::filesystem::path)(boost::filesystem::path)(std::vector<const element *>)(unsigned int)(double)(unsigned int)
     26#define paramtokens ("training-file")("error-file")("fragment-charges")("take-best-of")("set-threshold")("set-max-iterations")
     27#define paramdescriptions ("optional file to write training data to")("optional file to write error data to")("charges specifying the fragment")("take the best among this many approximations")("Require L2 error to be smaller than threshold, overrides number of attempts")("sets the maximum number of iterations spent on the optimization of parameters")
     28#define paramdefaults (PARAM_DEFAULT(""))(PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(PARAM_DEFAULT(3))(PARAM_DEFAULT(1.))(PARAM_DEFAULT(100))
     29#define paramreferences (training_file)(error_file)(fragment)(best_of_howmany)(threshold)(max_iterations)
    3030#define paramvalids \
     31(DummyValidator<boost::filesystem::path>()) \
    3132(DummyValidator<boost::filesystem::path>()) \
    3233(STLVectorValidator< std::vector<const element *> >(1,99, ElementValidator())) \
  • src/Actions/PotentialAction/FitPotentialAction.cpp

    r889067e r82e5fb  
    141141      graph,
    142142      params.training_file.get(),
     143      params.error_file.get(),
    143144      params.max_iterations.get(),
    144145      params.threshold.get(),
  • src/Actions/PotentialAction/FitPotentialAction.def

    r889067e r82e5fb  
    2323// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    2424// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
    25 #define paramtypes (boost::filesystem::path)(std::string)(std::vector<const element *>)(std::vector<const element *>)(unsigned int)(double)(unsigned int)
    26 #define paramtokens ("training-file")("potential-type")("potential-charges")("fragment-charges")("take-best-of")("set-threshold")("set-max-iterations")
    27 #define paramdescriptions ("optional file to write training data to")("potential type to fit")("charges specifying the potential")("charges specifying the fragment")("take the best among this many approximations")("Require L2 error to be smaller than threshold, overrides number of attempts")("sets the maximum number of iterations spent on the optimization of parameters")
    28 #define paramdefaults (PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(3))(PARAM_DEFAULT(1.))(PARAM_DEFAULT(100))
    29 #define paramreferences (training_file)(potentialtype)(charges)(fragment)(best_of_howmany)(threshold)(max_iterations)
     25#define paramtypes (boost::filesystem::path)(boost::filesystem::path)(std::string)(std::vector<const element *>)(std::vector<const element *>)(unsigned int)(double)(unsigned int)
     26#define paramtokens ("training-file")("error-file")("potential-type")("potential-charges")("fragment-charges")("take-best-of")("set-threshold")("set-max-iterations")
     27#define paramdescriptions ("optional file to write training data to")("optional file to write error data to")("potential type to fit")("charges specifying the potential")("charges specifying the fragment")("take the best among this many approximations")("Require L2 error to be smaller than threshold, overrides number of attempts")("sets the maximum number of iterations spent on the optimization of parameters")
     28#define paramdefaults (PARAM_DEFAULT(""))(PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(3))(PARAM_DEFAULT(1.))(PARAM_DEFAULT(100))
     29#define paramreferences (training_file)(error_file)(potentialtype)(charges)(fragment)(best_of_howmany)(threshold)(max_iterations)
    3030#define paramvalids \
     31(DummyValidator<boost::filesystem::path>()) \
    3132(DummyValidator<boost::filesystem::path>()) \
    3233(PotentialTypeValidator()) \
Note: See TracChangeset for help on using the changeset viewer.