Ignore:
Timestamp:
Feb 9, 2016, 7:10:23 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
b40690
Parents:
08111a
git-author:
Frederik Heber <heber@…> (02/08/16 17:00:06)
git-committer:
Frederik Heber <heber@…> (02/09/16 07:10:23)
Message:

FIX: PotentialTrainer did not use user-specified threshold so far.

  • TESTFIX: Decreased l2 tolerance in FitPotential regression tests to further speed up tests. This is especially true for the enable-debug variant, where 3 of 5 tests take more than 15 minutes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/regression/Potential/FitPotential/testsuite-potential-fit-potential.at

    r08111a rb8f2ea  
    3636                --potential-charges 8 1 \
    3737                --fragment-charges 1 8 1 \
    38                 --set-threshold 1e-6 \
     38                --set-threshold 5e-6 \
    3939        --save-potentials length.potentials], 0, [stdout], [ignore])
    4040# check that L_2 error is below 1e-6
    41 AT_CHECK([grep "Best parameters with L2 error" stdout | awk '{if ($8 > 1e-6) exit 1}'], 0, [ignore], [ignore])
     41AT_CHECK([grep "Best parameters with L2 error" stdout | awk '{if ($8 > 5e-6) exit 1}'], 0, [ignore], [ignore])
    4242# check parameters to printed precision
    43 AT_CHECK([grep "morse:.*particle_type1=8,.*particle_type2=1,.*spring_constant=1.27.*,.*equilibrium_distance=1.78.*,.*dissociation_energy=0.19.*;" length.potentials], 0, [ignore], [ignore])
     43AT_CHECK([grep "morse:.*particle_type1=8,.*particle_type2=1,.*spring_constant=1.2.*,.*equilibrium_distance=1.7.*,.*dissociation_energy=0.19.*;" length.potentials], 0, [ignore], [ignore])
    4444
    4545AT_CLEANUP
     
    6262                --potential-charges 8 1 \
    6363                --fragment-charges 1 8 1 \
    64                 --set-threshold 1e-6 \
     64                --set-threshold 5e-6 \
    6565        --save-potentials harmonic.potentials], 0, [stdout], [ignore])
    66 # check that L_2 error is below 1e-6
    67 AT_CHECK([grep "Best parameters with L2 error" stdout | awk '{if ($8 > 1e-6) exit 1}'], 0, [ignore], [ignore])
     66# check that L_2 error is below 5e-6
     67AT_CHECK([grep "Best parameters with L2 error" stdout | awk '{if ($8 > 5e-6) exit 1}'], 0, [ignore], [ignore])
    6868# check parameters to printed precision
    6969AT_CHECK([grep "harmonic_bond:.*particle_type1=8,.*particle_type2=1,.*spring_constant=0.29.*,.*equilibrium_distance=1.8.*;" harmonic.potentials], 0, [ignore], [ignore])
     
    114114                --potential-charges 6 6 6 6 \
    115115                --fragment-charges 6 6 6 6 1 1 1 1 1 1 1 1 1 1 \
    116                 --set-threshold 2e-10 \
     116                --set-threshold 1e-9 \
    117117        --save-potentials torsion.potentials], 0, [stdout], [ignore])
    118118# check that L_2 error is below 9e-12 ... just 2e-10 otherwise test takes tooo long
    119 AT_CHECK([grep "Best parameters with L2 error" stdout | awk '{if ($8 > 2e-10) exit 1}'], 0, [ignore], [ignore])
     119AT_CHECK([grep "Best parameters with L2 error" stdout | awk '{if ($8 > 1e-9) exit 1}'], 0, [ignore], [ignore])
    120120AT_CHECK([grep "torsion:.*particle_type1=6,.*particle_type2=6,.*particle_type3=6,.*particle_type4=6,.*spring_constant=.*,.*equilibrium_distance=.*;" torsion.potentials], 0, [ignore], [ignore])
    121121#AT_CHECK([grep "torsion:.*particle_type1=6,.*particle_type2=6,.*particle_type3=6,.*particle_type4=6,.*spring_constant=0.001.*,.*equilibrium_distance=0.99.*;" torsion.potentials], 0, [ignore], [ignore])
     
    167167                --potential-charges 18 18 \
    168168                --fragment-charges 18 18 \
    169                 --set-threshold 7e-9 \
     169                --set-threshold 7e-8 \
    170170        --save-potentials lj.potentials], 0, [stdout], [ignore])
    171 # check that L_2 error is below 7e-11 ... just 7e-9 otherwise test takes too long
    172 AT_CHECK([grep "Best parameters with L2 error" stdout | awk '{if ($8 > 7e-9) exit 1}'], 0, [ignore], [ignore])
     171# check that L_2 error is below 7e-11 ... just 7e-8 otherwise test takes too long
     172AT_CHECK([grep "Best parameters with L2 error" stdout | awk '{if ($8 > 7e-8) exit 1}'], 0, [ignore], [ignore])
    173173# check parameters to printed precision
    174174AT_CHECK([grep "lennardjones:.*particle_type1=18,.*particle_type2=18,.*epsilon=.*,.*sigma=.*;" lj.potentials], 0, [ignore], [ignore])
Note: See TracChangeset for help on using the changeset viewer.