saturncube 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- saturncube-0.7.0/CHANGELOG.md +46 -0
- saturncube-0.7.0/LICENSE +21 -0
- saturncube-0.7.0/MANIFEST.in +7 -0
- saturncube-0.7.0/PKG-INFO +714 -0
- saturncube-0.7.0/README.md +675 -0
- saturncube-0.7.0/RELEASING.md +45 -0
- saturncube-0.7.0/docs/TUNING.md +138 -0
- saturncube-0.7.0/examples/compare_all.py +13 -0
- saturncube-0.7.0/examples/compare_optimizers.py +17 -0
- saturncube-0.7.0/examples/continual_learning.py +17 -0
- saturncube-0.7.0/examples/python_pipeline.py +45 -0
- saturncube-0.7.0/pyproject.toml +50 -0
- saturncube-0.7.0/saturncube/__init__.py +69 -0
- saturncube-0.7.0/saturncube/_docs.py +89 -0
- saturncube-0.7.0/saturncube/attention.py +451 -0
- saturncube-0.7.0/saturncube/base.py +396 -0
- saturncube-0.7.0/saturncube/classical.py +207 -0
- saturncube-0.7.0/saturncube/codegen.py +184 -0
- saturncube-0.7.0/saturncube/cognition.py +124 -0
- saturncube-0.7.0/saturncube/data.py +1045 -0
- saturncube-0.7.0/saturncube/deeprl.py +629 -0
- saturncube-0.7.0/saturncube/evaluation.py +499 -0
- saturncube-0.7.0/saturncube/experiment.py +220 -0
- saturncube-0.7.0/saturncube/graph.py +694 -0
- saturncube-0.7.0/saturncube/layers.py +369 -0
- saturncube-0.7.0/saturncube/memory.py +359 -0
- saturncube-0.7.0/saturncube/meta.py +237 -0
- saturncube-0.7.0/saturncube/metric.py +293 -0
- saturncube-0.7.0/saturncube/optim.py +314 -0
- saturncube-0.7.0/saturncube/pycode.py +180 -0
- saturncube-0.7.0/saturncube/retrieval.py +213 -0
- saturncube-0.7.0/saturncube/rl.py +412 -0
- saturncube-0.7.0/saturncube/rules.py +376 -0
- saturncube-0.7.0/saturncube/search.py +130 -0
- saturncube-0.7.0/saturncube/sequence.py +588 -0
- saturncube-0.7.0/saturncube/spiking.py +242 -0
- saturncube-0.7.0/saturncube/strategies.py +171 -0
- saturncube-0.7.0/saturncube/symbolic.py +212 -0
- saturncube-0.7.0/saturncube/text.py +349 -0
- saturncube-0.7.0/saturncube/unsupervised.py +578 -0
- saturncube-0.7.0/saturncube/vector.py +200 -0
- saturncube-0.7.0/saturncube/verify.py +143 -0
- saturncube-0.7.0/saturncube/vision.py +73 -0
- saturncube-0.7.0/saturncube.egg-info/PKG-INFO +714 -0
- saturncube-0.7.0/saturncube.egg-info/SOURCES.txt +68 -0
- saturncube-0.7.0/saturncube.egg-info/dependency_links.txt +1 -0
- saturncube-0.7.0/saturncube.egg-info/requires.txt +16 -0
- saturncube-0.7.0/saturncube.egg-info/top_level.txt +1 -0
- saturncube-0.7.0/scripts/tune_defaults.py +49 -0
- saturncube-0.7.0/scripts/tune_followup.py +43 -0
- saturncube-0.7.0/scripts/update_readme.py +24 -0
- saturncube-0.7.0/setup.cfg +4 -0
- saturncube-0.7.0/tests/test_attention.py +78 -0
- saturncube-0.7.0/tests/test_benchmark.py +309 -0
- saturncube-0.7.0/tests/test_data.py +159 -0
- saturncube-0.7.0/tests/test_deeprl.py +105 -0
- saturncube-0.7.0/tests/test_docs.py +45 -0
- saturncube-0.7.0/tests/test_graph.py +76 -0
- saturncube-0.7.0/tests/test_memory.py +86 -0
- saturncube-0.7.0/tests/test_meta.py +182 -0
- saturncube-0.7.0/tests/test_rules.py +46 -0
- saturncube-0.7.0/tests/test_search_symbolic.py +103 -0
- saturncube-0.7.0/tests/test_sequence.py +77 -0
- saturncube-0.7.0/tests/test_text.py +212 -0
- saturncube-0.7.0/tests/test_tools_generation_experiment_classical.py +136 -0
- saturncube-0.7.0/tests/test_tools_memory_cognition_verification.py +141 -0
- saturncube-0.7.0/tests/test_training_defaults.py +202 -0
- saturncube-0.7.0/tests/test_v03.py +172 -0
- saturncube-0.7.0/tests/test_vector.py +71 -0
- saturncube-0.7.0/tests/test_vision_bio.py +117 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
- **Behaviour change:** `patience` now defaults to `"auto"`: 10 for regression, off for classification. Regression fits that used to
|
|
5
|
+
run all `epochs` now hold out `val_split` (10%) of the training rows and may stop early with the best weights restored. The
|
|
6
|
+
automatic default needs at least 20 held-out rows (`AUTO_MIN_VAL_ROWS`) and never warns; `patience=None` restores the old behaviour.
|
|
7
|
+
- `patience` now always has data to monitor: without `val_data=`, models hold out `val_split` (default 0.1, stratified for
|
|
8
|
+
classification) of the training rows; `val_split=0` disables it and `patience` warns. New attributes `n_val_`, `best_epoch_`,
|
|
9
|
+
`stopped_epoch_`. `partial_fit` never holds rows out. Early stopping is still off by default.
|
|
10
|
+
- `sc.warmup()` pays PyTorch's one-time optimizer start-up cost; `sc.benchmark` calls it so the first model's timing is fair.
|
|
11
|
+
- docs/TUNING.md and scripts/tune_defaults.py, scripts/tune_followup.py: measured evidence for the training defaults. No default
|
|
12
|
+
learning rate or epoch count was changed.
|
|
13
|
+
- `sc.benchmark(models, X, y, groups=None, seeds=5, baselines=True)`: fair model comparison with group-disjoint splits, mean ± std
|
|
14
|
+
over seeds, automatic majority and scaled scikit-learn baselines, and a printed table. Returns a `BenchmarkResult`.
|
|
15
|
+
- New optional extra `bench` (scikit-learn); `dev` now includes it.
|
|
16
|
+
- Text input: `TextVectorizer` (TF-IDF, optional SVD), `TokenEncoder` (padded token ids) and `TextModel`, which puts any
|
|
17
|
+
registry model behind raw-text `fit` / `predict` / `evaluate` / `save` / `load`. Encoders are fitted on training text only
|
|
18
|
+
and saved as JSON.
|
|
19
|
+
- The README model table is generated from the registry (`python scripts/update_readme.py`); a test fails if it drifts.
|
|
20
|
+
- Every registered class now has its own docstring (38 were missing); a test enforces it.
|
|
21
|
+
- `sc.available()` no longer lists `unit_tests` (not a model). `register(..., hidden=True)` and
|
|
22
|
+
`available(include_hidden=True)` keep such helpers creatable by name.
|
|
23
|
+
|
|
24
|
+
## 0.7.0
|
|
25
|
+
- Automatic data preparation: `load_dataset`, `Dataset.report/prepare/prepare_sequences/prepare_images`, a saved-and-reloadable
|
|
26
|
+
`Pipeline`, `auto_model`, `check_arrays`. Handles messy CSVs (formats, missing values, categories, dates), splits without leakage.
|
|
27
|
+
- Models now raise a clear error for text or NaN input instead of failing obscurely.
|
|
28
|
+
|
|
29
|
+
## 0.6.0
|
|
30
|
+
- Added `CNN`, a compact ResNet-style convolutional network for images (classification and regression).
|
|
31
|
+
- Added `SpikingNetwork`, a leaky integrate-and-fire network trained with surrogate gradients (direct or rate encoding).
|
|
32
|
+
- Added `SelfOrganizingMap`, with quantization / topographic error, U-matrix, hit map and unit labelling.
|
|
33
|
+
- Removed the experimental C-language helpers; program tools are Python-only.
|
|
34
|
+
- Packaging: full project metadata, `slow` test marker, CI and publish workflows.
|
|
35
|
+
|
|
36
|
+
## 0.5.0
|
|
37
|
+
- Search (genetic algorithm, successive halving, simulated annealing), program synthesis and Datalog,
|
|
38
|
+
retrieval and case memory, learning strategies, verification and property testing, code generation,
|
|
39
|
+
experiment design and statistics, and classical ML (random forest, k-means, naive Bayes).
|
|
40
|
+
|
|
41
|
+
## 0.4.0
|
|
42
|
+
- Sequence, attention, memory, metric / few-shot, graph, tree and pointer models; deep RL; meta-learning;
|
|
43
|
+
more learning rules and optimizers.
|
|
44
|
+
|
|
45
|
+
## 0.1.0 - 0.3.0
|
|
46
|
+
- Vector/tabular networks, optimizers, unsupervised models, Hebbian rules, continual learning, tabular RL.
|
saturncube-0.7.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ChristopherDarien-3
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|