Commit graph

68 commits

Author SHA1 Message Date
Dzuchun
b20fdcd0d3 Renamed Entity to Model in a bunch of places v0.3
(leftovers from earlier development stages)
2024-11-24 17:15:57 +02:00
Dzuchun
9d4c06a9e9 Scalar is now an associated type of FitModel
(that's a massive rewrite!)
This change might seem random, but it, in fact, simplifies usage A LOT.
Now, `Scalar` type is **determined** by model, which is what should
happen in the first place.
2024-11-24 17:11:35 +02:00
Dzuchun
68641ac7e5 Hidden polynomial module from doc 2024-11-24 16:54:17 +02:00
Dzuchun
fe83a4e027 [Cargo.toml] v0.2 2024-11-23 16:32:43 +02:00
Dzuchun
98760e9277 Fixed typos action 2024-11-23 16:26:06 +02:00
Dzuchun
dd5105d226 Restructured the crate
- Now using `generic_array_storage` v0.1.1 (Conv trait drastically
  changed).
- `FitModel::ParamCount` type now has a less strict type bound, allowing
  use of `typenum::Const` and even `nalgebra::Const`, if you feel like
  it.
- Removed `Params` argument from `ConstOptimizationProblem` and
  `DynOptimizationProblem`.
2024-11-23 16:26:06 +02:00
Dzuchun
b9e101e077 Copied simpliest macro impl to a separate file
For easier macro output testing
2024-11-23 16:26:01 +02:00
Dzuchun
c7c200491f Removed mandatory dependency on libm over std v0.1.1 2024-11-22 02:35:31 +02:00
Dzuchun
66f8a8ce5c GenericArray is now a valid data source 2024-11-22 02:35:23 +02:00
Dzuchun
60c7acb009 Documented "reserved" name for the weights 2024-11-22 01:50:52 +02:00
Dzuchun
3d253ff023 FitModelErrors fix for Polynomial v0.1 2024-11-22 00:35:50 +02:00
Dzuchun
a090595138 Tagged generic_array_storage 2024-11-21 23:56:45 +02:00
Dzuchun
88f733162c Ignored some tests for Miri
- model jacobian test, because of stacked borrows issue inside ViewStorage (help wanted!?)
- stddev test, as it took too long
2024-11-21 23:39:38 +02:00
Dzuchun
1d2f0b8b9f [minor] double colon in front of core 2024-11-21 23:35:34 +02:00
Dzuchun
815b850064 [Cargo.lock] 2024-11-21 21:18:36 +02:00
Dzuchun
103b310180 Added macro to generate test for model's jacobian 2024-11-21 21:15:36 +02:00
Dzuchun
0c682848f0 Fixed error computation & added test to enforce it
Note that error formula is an approximation for case of large datapoint count, so it's strict enforcement is not possible, unfortunately.
2024-11-21 21:15:36 +02:00
Dzuchun
c1e0b1308a Ranged: changed parameters order 2024-11-21 21:15:36 +02:00
Dzuchun
5b350556e2 [minor] lint attribute in test 2024-11-21 21:15:36 +02:00
Dzuchun
b9964d5c80 Polynomial now uses IntoArrayLength 2024-11-21 21:15:36 +02:00
Dzuchun
8e54cd7325 Gaussian impl bug fixes 2024-11-21 21:15:36 +02:00
Dzuchun
0de471fd76 Composition model impl format 2024-11-21 21:15:36 +02:00
Dzuchun
b9df9653a6 DifferentiableFunction and ModelMap re-design 2024-11-21 21:15:36 +02:00
Dzuchun
0fd5f1481f Fixed utility model and corresponding tests 2024-11-21 21:15:36 +02:00
Dzuchun
977b6b3371 fit_stat, corresponding macro and basic doc. 2024-11-21 21:15:36 +02:00
Dzuchun
d9636bc41c FitModelError impls for basic fit models 2024-11-21 21:15:36 +02:00
Dzuchun
f8b740a423 Renamed generic type parameter 2024-11-21 21:15:36 +02:00
Dzuchun
73576babd2 FitModelErrors trait and basic impls 2024-11-21 21:15:31 +02:00
Dzuchun
dfd21f2862 Added missing FitModelXDeriv implementations 2024-11-20 11:54:04 +02:00
Dzuchun
a27261e9b0 Private items documentation in the gh workflow 2024-11-20 06:00:50 +02:00
Dzuchun
0d93773bf6 Changed typos workflow
now checks all source code and all markdown files
2024-11-20 05:54:56 +02:00
Dzuchun
b3197be57f Removed a single extra line feed 2024-11-20 05:49:46 +02:00
Dzuchun
ea0be1accf Allowed missing docs in integration tests
Since Miri seemed to perceive them as separate crates (which makes
sense), and demanded docs
2024-11-20 05:39:12 +02:00
Dzuchun
4545e47c56 Added badges for test and doc status 2024-11-20 05:39:03 +02:00
Dzuchun
61ef6a8efb Initial Cargo.lock 2024-11-20 05:26:29 +02:00
Dzuchun
0f5e51a3ed github actions
- typos (check for typos in comments and docs)
- build (check, test and build)
- docs (build and publish docs)
- miri (UB check)
2024-11-20 05:24:48 +02:00
Dzuchun
44340e947c GPL v3 2024-11-20 05:23:26 +02:00
Dzuchun
669b1ab058 Added tests 2024-11-20 05:22:56 +02:00
Dzuchun
085f65c271 Documentation on fit! macro 2024-11-20 05:22:25 +02:00
Dzuchun
4191e084a0 Documentation for input format 2024-11-20 05:22:05 +02:00
Dzuchun
3fc6e9f567 Main doc (README) 2024-11-20 05:21:35 +02:00
Dzuchun
b466a8984f Exported a couple useful types 2024-11-20 05:21:08 +02:00
Dzuchun
bb220b107c fit! macro, simplified public interface 2024-11-20 05:20:36 +02:00
Dzuchun
4a8380522c main public API 2024-11-20 05:20:30 +02:00
Dzuchun
c635b584f2 Added glue to lav-mar and nalgebra 2024-11-20 05:12:03 +02:00
Dzuchun
83d4d29e5b Derive macro for sum 2024-11-20 05:12:03 +02:00
Dzuchun
3a7592c4a6 Convenience trait for model composition 2024-11-20 05:12:03 +02:00
Dzuchun
686cfbdecd Model x derivatives 2024-11-20 05:12:03 +02:00
Dzuchun
aecef406d8 Map utility model 2024-11-20 05:12:03 +02:00
Dzuchun
724d0df9b0 Composition utility model 2024-11-20 05:12:03 +02:00