Skip to content

Commit 1292893

Browse files
committed
first commit
0 parents  commit 1292893

File tree

121 files changed

+17425
-0
lines changed

Some content is hidden

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

121 files changed

+17425
-0
lines changed

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.zip filter=lfs diff=lfs merge=lfs -text

Diff for: .gitignore

+247
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
2+
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,linux,python
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,macos,linux,python
4+
5+
### Linux ###
6+
*~
7+
8+
# temporary files which can be created if a process still has a handle open of a deleted file
9+
.fuse_hidden*
10+
11+
# KDE directory preferences
12+
.directory
13+
14+
# Linux trash folder which might appear on any partition or disk
15+
.Trash-*
16+
17+
# .nfs files are created when an open file is removed but is still being accessed
18+
.nfs*
19+
20+
### macOS ###
21+
# General
22+
.DS_Store
23+
.AppleDouble
24+
.LSOverride
25+
26+
# Icon must end with two \r
27+
Icon
28+
29+
30+
# Thumbnails
31+
._*
32+
33+
# Files that might appear in the root of a volume
34+
.DocumentRevisions-V100
35+
.fseventsd
36+
.Spotlight-V100
37+
.TemporaryItems
38+
.Trashes
39+
.VolumeIcon.icns
40+
.com.apple.timemachine.donotpresent
41+
42+
# Directories potentially created on remote AFP share
43+
.AppleDB
44+
.AppleDesktop
45+
Network Trash Folder
46+
Temporary Items
47+
.apdisk
48+
49+
### macOS Patch ###
50+
# iCloud generated files
51+
*.icloud
52+
53+
### Python ###
54+
# Byte-compiled / optimized / DLL files
55+
__pycache__/
56+
*.py[cod]
57+
*$py.class
58+
59+
# C extensions
60+
*.so
61+
62+
# Distribution / packaging
63+
.Python
64+
build/
65+
develop-eggs/
66+
dist/
67+
downloads/
68+
eggs/
69+
.eggs/
70+
lib/
71+
lib64/
72+
parts/
73+
sdist/
74+
var/
75+
wheels/
76+
share/python-wheels/
77+
*.egg-info/
78+
.installed.cfg
79+
*.egg
80+
MANIFEST
81+
82+
# PyInstaller
83+
# Usually these files are written by a python script from a template
84+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
85+
*.manifest
86+
*.spec
87+
88+
# Installer logs
89+
pip-log.txt
90+
pip-delete-this-directory.txt
91+
92+
# Unit test / coverage reports
93+
htmlcov/
94+
.tox/
95+
.nox/
96+
.coverage
97+
.coverage.*
98+
.cache
99+
nosetests.xml
100+
coverage.xml
101+
*.cover
102+
*.py,cover
103+
.hypothesis/
104+
.pytest_cache/
105+
cover/
106+
107+
# Translations
108+
*.mo
109+
*.pot
110+
111+
# Django stuff:
112+
*.log
113+
local_settings.py
114+
db.sqlite3
115+
db.sqlite3-journal
116+
117+
# Flask stuff:
118+
instance/
119+
.webassets-cache
120+
121+
# Scrapy stuff:
122+
.scrapy
123+
124+
# Sphinx documentation
125+
docs/_build/
126+
127+
# PyBuilder
128+
.pybuilder/
129+
target/
130+
131+
# Jupyter Notebook
132+
.ipynb_checkpoints
133+
134+
# IPython
135+
profile_default/
136+
ipython_config.py
137+
138+
# pyenv
139+
# For a library or package, you might want to ignore these files since the code is
140+
# intended to run in multiple environments; otherwise, check them in:
141+
# .python-version
142+
143+
# pipenv
144+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
145+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
146+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
147+
# install all needed dependencies.
148+
#Pipfile.lock
149+
150+
# poetry
151+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
152+
# This is especially recommended for binary packages to ensure reproducibility, and is more
153+
# commonly ignored for libraries.
154+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
155+
#poetry.lock
156+
157+
# pdm
158+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
159+
#pdm.lock
160+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
161+
# in version control.
162+
# https://pdm.fming.dev/#use-with-ide
163+
.pdm.toml
164+
165+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
166+
__pypackages__/
167+
168+
# Celery stuff
169+
celerybeat-schedule
170+
celerybeat.pid
171+
172+
# SageMath parsed files
173+
*.sage.py
174+
175+
# Environments
176+
.env
177+
.venv
178+
env/
179+
venv/
180+
ENV/
181+
env.bak/
182+
venv.bak/
183+
184+
# Spyder project settings
185+
.spyderproject
186+
.spyproject
187+
188+
# Rope project settings
189+
.ropeproject
190+
191+
# mkdocs documentation
192+
/site
193+
194+
# mypy
195+
.mypy_cache/
196+
.dmypy.json
197+
dmypy.json
198+
199+
# Pyre type checker
200+
.pyre/
201+
202+
# pytype static type analyzer
203+
.pytype/
204+
205+
# Cython debug symbols
206+
cython_debug/
207+
208+
# PyCharm
209+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
210+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
211+
# and can be added to the global gitignore or merged into this file. For a more nuclear
212+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
213+
#.idea/
214+
215+
### Python Patch ###
216+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
217+
poetry.toml
218+
219+
# ruff
220+
.ruff_cache/
221+
222+
# LSP config files
223+
pyrightconfig.json
224+
225+
### VisualStudioCode ###
226+
.vscode/*
227+
!.vscode/settings.json
228+
!.vscode/tasks.json
229+
!.vscode/launch.json
230+
!.vscode/extensions.json
231+
!.vscode/*.code-snippets
232+
233+
# Local History for Visual Studio Code
234+
.history/
235+
236+
# Built Visual Studio Code Extensions
237+
*.vsix
238+
239+
### VisualStudioCode Patch ###
240+
# Ignore all local history of files
241+
.history
242+
.ionide
243+
244+
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,linux,python
245+
246+
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
247+

Diff for: Code/__init__.py

Whitespace-only changes.

Diff for: Code/aggregators/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from .funcs import post_aggregation_take_col_and_where, StepAggregateWeightedSum, StepAggregateWeightedAverage, \
2+
StepAggregateMax, StepAggregateFlattener, StepAggregateCount
3+
4+
__all__ = [StepAggregateFlattener,
5+
post_aggregation_take_col_and_where, StepAggregateWeightedSum, StepAggregateWeightedAverage,
6+
StepAggregateMax, StepAggregateCount
7+
]

Diff for: Code/aggregators/base.py

Whitespace-only changes.

Diff for: Code/aggregators/base_test.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import numpy as np
2+
3+
import pipe
4+
5+
6+
def help_test_aggregation(input_X, expected, p: pipe.ExtPipeline):
7+
result = p.fit_transform(X=input_X, y=None)
8+
# the output has two elements, X, and y
9+
# we are only interested in X, and we also ensure than
10+
# no values are set to y
11+
assert result[1] is None
12+
result = result[0]
13+
assert len(result) == len(expected)
14+
# assert np.all(result == expected)
15+
assert np.allclose(result, expected), f'{np.vstack([expected, result])}'

0 commit comments

Comments
 (0)