numenta / nupic.research

Experimental algorithms. Unsupported.
https://nupicresearch.readthedocs.io
GNU Affero General Public License v3.0
104 stars 60 forks source link

Import select code from htmresearch, preserving change history #649

Closed mrcslws closed 6 months ago

mrcslws commented 6 months ago

This PR creates a /projects/htmresearch_import folder that contains non-working code. Importantly, the change history is preserved (you can use Github's "blame" on any file to see it).

The code needs to be updated to work with Python 3 and to work with nupic.research.core. As the code is brought up-to-date, it should be moved into the /packages and /projects structure of this repo. The htmresearch_import project is a staging area for broken code.

This pull request is simply the result of the following commands:

git clone https://github.com/numenta/htmresearch.git ~/nta/htmresearch-filtered

cd ~/nta/htmresearch-filtered

# Use filter-repo from https://github.com/newren/git-filter-repo
git filter-repo \
--path projects/l2_pooling \
--path htmresearch/frameworks/layers/object_machine_factory.py \
--path htmresearch/frameworks/layers/physical_objects.py \
--path htmresearch/frameworks/layers/physical_objects_base.py \
--path htmresearch/frameworks/layers/multi_column_convergence_experiment.py \
--path htmresearch/frameworks/layers/l2_l4_inference.py \
--path htmresearch/frameworks/layers/sensor_placement.py \
--path htmresearch/algorithms/column_pooler.py \
--path htmresearch/support/logging_decorator.py \
--path projects/sequence_learning \
--path htmresearch/algorithms/faulty_temporal_memory.py \
--path projects/sp_paper \
--path htmresearch/support/sequence_learning_utils.py \
--path htmresearch/algorithms/faulty_spatial_pooler.py \
--path htmresearch/frameworks/sp_paper \
--path htmresearch/support/spatial_pooler_monitor_mixin.py \
--path htmresearch/support/sp_paper_utils.py \
--path htmresearch/support/generate_sdr_dataset.py \
--path projects/union_path_integration \
--path htmresearch/frameworks/location \
--path htmresearch/algorithms/location_modules.py \
--path tests/algorithms/column_pooler_test.py \
--path tests/algorithms/column_pooler_unit_test.py \
--path tests/frameworks/layers/l2_l4_inference_test.py \
--path tests/frameworks/layers/physical_objects_test.py \
--path tests/frameworks/layers/simple_objects_test.py \
--path sensorimotor/sensorimotor/faulty_temporal_memory.py \
--path sequence_learning/sequence_simulations.py \
--path sensorimotor/sensorimotor/spatial_pooler_monitor_mixin.py \
--to-subdirectory-filter projects/htmresearch_import

cd ~/nta/nupic.research

git remote add htmresearch-filtered ~/nta/htmresearch-filtered

git fetch htmresearch-filtered

git merge htmresearch-filtered/master --allow-unrelated-histories