Changeset e60558 for src/FunctionApproximation
- Timestamp:
- Nov 4, 2016, 9:37:51 AM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, 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_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, ThirdParty_MPQC_rebuilt_buildsystem, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
- Children:
- 041a79
- Parents:
- 67044a
- git-author:
- Frederik Heber <heber@…> (10/04/16 07:28:59)
- git-committer:
- Frederik Heber <heber@…> (11/04/16 09:37:51)
- Location:
- src/FunctionApproximation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FunctionApproximation/Extractors.cpp
r67044a re60558 161 161 FunctionModel::list_of_arguments_t Extractors::reorderArgumentsByParticleTypes( 162 162 const FunctionModel::list_of_arguments_t &listargs, 163 const HomologyGraph &_graph, 163 164 const ParticleTypes_t &_types, 164 165 const HomologyGraph &_bindingmodel … … 305 306 FunctionModel::list_of_arguments_t Extractors::filterArgumentsByParticleTypes( 306 307 const FunctionModel::arguments_t &args, 308 const HomologyGraph &_graph, 307 309 const ParticleTypes_t &_types, 308 310 const HomologyGraph &_bindingmodel … … 365 367 singlelist_allargs.push_back(allargs); 366 368 FunctionModel::list_of_arguments_t sortedargs = 367 reorderArgumentsByParticleTypes(singlelist_allargs, _ types, _bindingmodel);369 reorderArgumentsByParticleTypes(singlelist_allargs, _graph, _types, _bindingmodel); 368 370 ASSERT( sortedargs.size() == (size_t)1, 369 371 "Extractors::filterArgumentsByParticleTypes() - reordering did not generate a single list."); -
src/FunctionApproximation/Extractors.hpp
r67044a re60558 105 105 * 106 106 * \param listargs list of arguments to reorder each 107 * \param _graph contains binding model of graph 107 108 * \param _types particle type vector 108 109 * \return reordered args … … 110 111 FunctionModel::list_of_arguments_t reorderArgumentsByParticleTypes( 111 112 const FunctionModel::list_of_arguments_t &eachargs, 113 const HomologyGraph &_graph, 112 114 const ParticleTypes_t &_types, 113 115 const HomologyGraph &_bindingmodel … … 120 122 * 121 123 * \param args arguments to reorder 124 * \param _graph contains binding model of graph 122 125 * \param _types particle type vector 123 126 * \return filtered list of args … … 125 128 FunctionModel::list_of_arguments_t filterArgumentsByParticleTypes( 126 129 const FunctionModel::arguments_t &args, 130 const HomologyGraph &_graph, 127 131 const ParticleTypes_t &_types, 128 132 const HomologyGraph &_bindingmodel -
src/FunctionApproximation/FunctionModel.hpp
r67044a re60558 21 21 22 22 class Fragment; 23 class HomologyGraph; 23 24 class TrainingData; 24 25 … … 70 71 typedef boost::function< list_of_arguments_t (const Fragment &, const size_t)> extractor_t; 71 72 //!> typedef for a function containing how to filter required distances from a full argument list. 72 typedef boost::function< list_of_arguments_t (const arguments_t &)> filter_t;73 typedef boost::function< list_of_arguments_t (const HomologyGraph &, const arguments_t &)> filter_t; 73 74 //!> typedef for the magic triple function that gets the other two distances for a given argument 74 75 typedef boost::function< std::vector<arguments_t>(const argument_t &, const double)> triplefunction_t; -
src/FunctionApproximation/TrainingData.cpp
r67044a re60558 57 57 void TrainingData::operator()(const range_t &range) { 58 58 for (HomologyContainer::const_iterator iter = range.first; iter != range.second; ++iter) { 59 const HomologyGraph &graph = iter->first; 59 60 const Fragment &fragment = iter->second.fragment; 60 61 FunctionModel::arguments_t all_args = Extractors::gatherAllSymmetricDistances( … … 67 68 EnergyVector.push_back( FunctionModel::results_t(1, energy) ); 68 69 // filter distances out of list of all arguments 69 FunctionModel::list_of_arguments_t args = filter( all_args);70 FunctionModel::list_of_arguments_t args = filter(graph, all_args); 70 71 LOG(3, "DEBUG: Filtered arguments are " << args << "."); 71 72 ArgumentVector.push_back( args );
Note:
See TracChangeset
for help on using the changeset viewer.