mloda-community-example 0.2.5__py3-none-any.whl → 0.2.6__py3-none-any.whl
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.
- mloda/community/feature_groups/example/__init__.py +5 -0
- mloda/community/feature_groups/example/community_example_feature_group.py +14 -0
- mloda/community/feature_groups/example/example_a/__init__.py +5 -0
- mloda/community/feature_groups/example/example_a/example_a_feature_group.py +14 -0
- mloda/community/feature_groups/example/example_b/__init__.py +5 -0
- mloda/community/feature_groups/example/example_b/example_b_feature_group.py +14 -0
- {mloda_community_example-0.2.5.dist-info → mloda_community_example-0.2.6.dist-info}/METADATA +1 -1
- mloda_community_example-0.2.6.dist-info/RECORD +10 -0
- {mloda_community_example-0.2.5.dist-info → mloda_community_example-0.2.6.dist-info}/WHEEL +1 -1
- mloda_community_example-0.2.6.dist-info/top_level.txt +1 -0
- mloda_community_example-0.2.5.dist-info/RECORD +0 -4
- mloda_community_example-0.2.5.dist-info/top_level.txt +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Community Example FeatureGroup implementation."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from mloda.provider import FeatureGroup
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CommunityExampleFeatureGroup(FeatureGroup):
|
|
9
|
+
"""Community Example FeatureGroup for demonstrating plugin structure."""
|
|
10
|
+
|
|
11
|
+
@classmethod
|
|
12
|
+
def calculate_feature(cls, data: Any, features: Any) -> Any:
|
|
13
|
+
"""Return dummy data."""
|
|
14
|
+
return {"community_example": "data"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Example A FeatureGroup implementation."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from mloda.community.feature_groups.example.community_example_feature_group import CommunityExampleFeatureGroup
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ExampleAFeatureGroup(CommunityExampleFeatureGroup):
|
|
9
|
+
"""Example A FeatureGroup extending the community example base."""
|
|
10
|
+
|
|
11
|
+
@classmethod
|
|
12
|
+
def calculate_feature(cls, data: Any, features: Any) -> Any:
|
|
13
|
+
"""Return example A specific data."""
|
|
14
|
+
return {"example_a": "data", "source": "community_example_base"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Example B FeatureGroup implementation."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from mloda.community.feature_groups.example.community_example_feature_group import CommunityExampleFeatureGroup
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ExampleBFeatureGroup(CommunityExampleFeatureGroup):
|
|
9
|
+
"""Example B FeatureGroup extending the community example base."""
|
|
10
|
+
|
|
11
|
+
@classmethod
|
|
12
|
+
def calculate_feature(cls, data: Any, features: Any) -> Any:
|
|
13
|
+
"""Return example B specific data."""
|
|
14
|
+
return {"example_b": "data", "source": "community_example_base"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
mloda/community/feature_groups/example/__init__.py,sha256=O1EXrDth7HrH8WrITgMJUHunjDtegC-UmMfFA1M-mDY,214
|
|
2
|
+
mloda/community/feature_groups/example/community_example_feature_group.py,sha256=YSUJbKsiQP-VaZ_47p_alS50oThNxGcofBDxYpsCdGo,408
|
|
3
|
+
mloda/community/feature_groups/example/example_a/__init__.py,sha256=4QdcyrlQS1U2LjXr37ddtucuuq-Nm8oqtcBMCv53dJY,181
|
|
4
|
+
mloda/community/feature_groups/example/example_a/example_a_feature_group.py,sha256=QtdMhJGDpu8vFSy5cU4c52i-qehoAQ04bm5WVbE8EP8,515
|
|
5
|
+
mloda/community/feature_groups/example/example_b/__init__.py,sha256=eeaVjQ06XlTtM9AeosAOpVJEbdofDVpDZMt-lWgk7P0,181
|
|
6
|
+
mloda/community/feature_groups/example/example_b/example_b_feature_group.py,sha256=UM7GZ4I4OlNtw72JUJ_aqYO2RbO82qi50THJakuQ5dg,515
|
|
7
|
+
mloda_community_example-0.2.6.dist-info/METADATA,sha256=fauMurq_Tee7yhlWw6s8fH-kAtCf0Sut1HyHcngxkYA,595
|
|
8
|
+
mloda_community_example-0.2.6.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
9
|
+
mloda_community_example-0.2.6.dist-info/top_level.txt,sha256=srwNjqzXpP1WfLRhbrVc9JLt8TdfsaQe-Th7cGcAvYY,6
|
|
10
|
+
mloda_community_example-0.2.6.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mloda
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
mloda_community_example-0.2.5.dist-info/METADATA,sha256=UYdinzJopMkIAr6wDSS-jxTbSe9N1UmEZbMQOePquro,595
|
|
2
|
-
mloda_community_example-0.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
3
|
-
mloda_community_example-0.2.5.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
4
|
-
mloda_community_example-0.2.5.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|