Skip to content

Commit f4971d4

Browse files
include default MLARCH
1 parent c4b4acb commit f4971d4

45 files changed

Lines changed: 15788 additions & 113 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.PHONY: clean clean-test clean-pyc clean-build docs help
32
.DEFAULT_GOAL := help
43

@@ -22,10 +21,10 @@ for line in sys.stdin:
2221
endef
2322
export PRINT_HELP_PYSCRIPT
2423

25-
BROWSER := python -c "$$BROWSER_PYSCRIPT"
24+
BROWSER := python3 -c "$$BROWSER_PYSCRIPT"
2625

2726
help:
28-
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
27+
@python3 -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
2928

3029
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
3130

@@ -48,21 +47,21 @@ clean-test: ## remove test and coverage artifacts
4847
lint: ## check style with flake8
4948
flake8 ahead tests
5049

51-
coverage: ## check code coverage quickly with the default Python
52-
coverage run --source ahead setup.py test
53-
coverage report -m
54-
coverage html
55-
$(BROWSER) htmlcov/index.html
50+
coverage: ## check code coverage quickly with the default Python
51+
coverage report --omit="venv/*,ahead/tests/*" --show-missing
5652

57-
docs: ## generate docs
53+
docs: install ## generate docs
5854
#pip install black pdoc
5955
#black ahead/* --line-length=80
60-
pdoc -t docs ahead/* --output-dir ahead-docs
56+
#find ahead/ -name "*.py" -exec autopep8 --max-line-length=80 --in-place {} +
57+
R_HOME=$(shell R RHOME) pdoc -t docs ahead/* --output-dir ahead-docs
6158
find . -name '__pycache__' -exec rm -fr {} +
59+
cp -rf ahead-docs/* ../../Pro_Website/Techtonique.github.io/ahead
6260

63-
servedocs: ## compile the docs watching for change
64-
pip install black pdoc
65-
black ahead/* --line-length=80
61+
servedocs: install ## compile the docs watching for change
62+
#pip install black pdoc
63+
#black ahead/* --line-length=80
64+
#find ahead/ -name "*.py" -exec autopep8 --max-line-length=80 --in-place {} +
6665
pdoc -t docs ahead/*
6766
find . -name '__pycache__' -exec rm -fr {} +
6867

@@ -76,12 +75,28 @@ dist: clean ## builds source and wheel package
7675
ls -l dist
7776

7877
install: clean ## install the package to the active Python's site-packages
79-
python3 -m pip install . --verbose
78+
pip install -e .
79+
80+
build-site: docs ## export mkdocs website to a folder
81+
cp -rf ahead-docs/* ../../Pro_Website/Techtonique.github.io/ahead
82+
find . -name '__pycache__' -exec rm -fr {} +
8083

81-
build-site: docs ## put docs website in a directory
82-
cd docs&&mkdocs build
83-
cp -rf docs/site/* ../../Pro_Website/Techtonique.github.io/ahead_python
84-
cd ..
84+
run-custom: ## run all custom examples with one command
85+
find examples -maxdepth 2 -name "*custom*.py" -exec python3 {} \;
8586

8687
run-examples: ## run all examples with one command
8788
find examples -maxdepth 2 -name "*.py" -exec python3 {} \;
89+
90+
run-mts: ## run all mts examples with one command
91+
find examples -maxdepth 2 -name "*mts*.py" -exec python3 {} \;
92+
93+
run-lazy: ## run all lazy examples with one command
94+
find examples -maxdepth 2 -name "lazy*.py" -exec python3 {} \;
95+
96+
run-conformal: ## run all lazy examples with one command
97+
find examples -maxdepth 2 -name "*conformal*.py" -exec python3 {} \;
98+
99+
run-tests: install ## run all the tests with one command
100+
pip3 install coverage nose2
101+
python3 -m coverage run -m unittest discover -s ahead/tests -p "*.py"
102+

ahead-docs/ahead.html

Lines changed: 2650 additions & 0 deletions
Large diffs are not rendered by default.

ahead-docs/ahead/ARMAGARCH.html

Lines changed: 501 additions & 0 deletions
Large diffs are not rendered by default.

ahead-docs/ahead/ARMAGARCH/ArmaGarch.html

Lines changed: 630 additions & 0 deletions
Large diffs are not rendered by default.

ahead-docs/ahead/Base.html

Lines changed: 664 additions & 0 deletions
Large diffs are not rendered by default.

ahead-docs/ahead/Base/Base.html

Lines changed: 993 additions & 0 deletions
Large diffs are not rendered by default.

ahead-docs/ahead/Basic.html

Lines changed: 575 additions & 0 deletions
Large diffs are not rendered by default.

ahead-docs/ahead/Basic/BasicForecaster.html

Lines changed: 754 additions & 0 deletions
Large diffs are not rendered by default.

ahead-docs/ahead/DynamicRegressor.html

Lines changed: 499 additions & 0 deletions
Large diffs are not rendered by default.

ahead-docs/ahead/DynamicRegressor/DynamicRegressor.html

Lines changed: 627 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)