Varun Agrawal
9cb225ac20
Allow setting custom leaf value for AlgebraicDecisionTree
2022-11-07 15:42:24 -05:00
Varun Agrawal
11e4c1ed57
Merge branch 'develop' into hybrid/error
2022-11-03 11:24:01 -04:00
Varun Agrawal
aa1c65d0dc
default string for AlgebraicDecisionTree::print
2022-10-31 15:37:06 -04:00
Varun Agrawal
33e24265bd
Merge branch 'develop' into fix/doxygen
2022-10-25 17:44:34 -04:00
Varun Agrawal
80908126db
add assertions to remove warning
2022-10-11 13:16:05 -04:00
Varun Agrawal
aef1669a50
Add labelformatter to Assignment for convenience
2022-09-15 13:24:33 -04:00
Varun Agrawal
ab017dfd19
move DiscreteKeys code to .cpp
2022-09-01 10:40:48 -04:00
Varun Agrawal
bfb865c12e
DiscreteKeys serialization
2022-09-01 00:00:06 -04:00
Varun Agrawal
2c4866e6e6
DiscreteKeys::print method
2022-08-31 12:30:36 -04:00
Varun Agrawal
68200e9cb9
Merge branch 'develop' into fix/doxygen
2022-08-27 21:53:20 -04:00
Varun Agrawal
66707792d2
Wrap DiscreteLookupTable
2022-08-03 04:21:12 -04:00
Varun Agrawal
92e1014874
update Discrete group
2022-07-26 16:55:28 -04:00
Varun Agrawal
aab6af3368
replace boost::function with std::function
2022-07-03 11:09:46 -04:00
Varun Agrawal
8482cee10b
improvements made during the old hybrid scheme implementation
2022-06-03 13:53:25 -04:00
Varun Agrawal
0cfeb8621c
fix tests and remove additional keyformatter calls
2022-05-05 14:35:10 -04:00
Varun Agrawal
caa14bc5aa
Merge pull request #1156 from borglab/decisiontree-prune
2022-04-13 23:22:45 -04:00
Varun Agrawal
8e6a583e7e
update for better docstrings
2022-04-12 14:04:42 -04:00
Varun Agrawal
29fe4364e7
increase precision of ADT printing
2022-04-07 16:41:24 -04:00
Varun Agrawal
2da2bcbf9c
update docs and test
2022-03-31 10:08:02 -04:00
Varun Agrawal
dac84e9932
update prune to new max number of assignments scheme
2022-03-31 10:04:00 -04:00
Varun Agrawal
039ecfc3c3
add new visitLeaf method that provides the leaf as the function argument
2022-03-31 10:03:23 -04:00
Varun Agrawal
e81e04acf5
convert DT_NO_PRUNING flag to GTSAM_DT_NO_PRUNING in case we wish to expose it via cmake
2022-03-31 06:38:49 -04:00
Varun Agrawal
d5d5ecc3b3
refactor DecisionTree to make a distinction between leaves and assignments
2022-03-31 06:10:40 -04:00
Varun Agrawal
cc7f4992b7
record number of assignments for each leaf
2022-03-30 19:42:48 -04:00
Varun Agrawal
365473fc5a
address review comments
2022-03-27 14:35:19 -04:00
Varun Agrawal
cd8d5590e6
doc fix
2022-03-27 13:34:42 -04:00
Varun Agrawal
4c966b9753
New prune method for DecisionTreeFactor
2022-03-27 13:25:35 -04:00
Varun Agrawal
d5cc4554db
add new nrLeaves method for DecisionTree
2022-03-24 14:35:50 -04:00
Varun Agrawal
3c62ab77de
remove redundancy in enumerate
2022-03-24 14:18:43 -04:00
Varun Agrawal
e2bc0fac6b
add test demonstrating apply does not enumerate all leaves
2022-03-19 19:50:30 -04:00
Varun Agrawal
a7f65c21bb
New apply method which takes op with Assignment
2022-03-19 12:56:06 -04:00
Varun Agrawal
fa542a2038
address review comments
2022-03-18 08:19:01 -04:00
Varun Agrawal
13c60990f7
fix visitWith operator() to be more functional
2022-03-18 00:11:38 -04:00
Varun Agrawal
5e9020237f
add test for visitWith with pruned tree
2022-03-18 00:11:05 -04:00
Varun Agrawal
8496565d9d
documentation updates
2022-03-11 08:41:24 -05:00
Varun Agrawal
199dec57fb
Merge pull request #1116 from acxz/include-guards
2022-02-22 18:21:28 -05:00
acxz
6ae319e401
add missing header guards under gtsam/
2022-02-21 13:50:22 -05:00
Mike Sheffler
e4733e720f
* Repaired actual test (needs '49', not '54'?) and LONGS_EQUAL instead of EQUAL -- Please review
...
* Added GTSAM_EXPORT back to to AlgebraicDecisionTree.h and added a .cpp file to accompany the .h. The only contents of the file are the specialization AlgebraicDecisionTree<Key>. This seems to make the linker happy enough to include the symbols that allow the above test to run.
2022-02-21 02:49:54 -08:00
Mike Sheffler
57a51a7c07
Assignment accidentally used in place of equality
2022-02-18 00:04:51 -08:00
Varun Agrawal
566c7b9cb8
Fix discrete module
2022-02-17 11:15:02 -05:00
Frank Dellaert
b975cdcc3d
Compilation issues with linux system
2022-02-16 20:58:20 -05:00
Frank Dellaert
1aedbf76a2
fix check.discrete
2022-02-16 08:57:23 -05:00
Mike Sheffler
b687317ccb
EXPORT statements to help Windows build. In Constraint.h, there was a GTSAM_EXPORT that should have been GTSAM_UNSTABLE_EXPORT, and in DiscreteKey.h, there should be a GTSAM_EXPORT in front of an operator definition for a class that is being exported.
2022-02-13 16:47:12 -08:00
Frank Dellaert
fb312f9d98
likelihood method for GaussianConditionals
2022-02-09 18:09:58 -05:00
Frank Dellaert
c7975bebea
remove stray output
2022-02-05 18:41:57 -05:00
Varun Agrawal
00d90f0412
Get matlab wrapping for discrete.i working
2022-02-01 20:38:55 -05:00
Varun Agrawal
134e82836e
Fixes to get matlab wrapper working properly
2022-02-01 19:08:46 -05:00
Frank Dellaert
113fbf10fe
Fix test
2022-01-31 16:44:45 -05:00
Frank Dellaert
656a695267
wrap more eliminate variants (and dot)
2022-01-30 14:09:55 -05:00
Frank Dellaert
828abe2fc0
Add dot in all wrappers
2022-01-27 14:33:46 -05:00