pyMoove 0.1.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.
Files changed (38) hide show
  1. pymoove-0.1.0/.gitignore +47 -0
  2. pymoove-0.1.0/PKG-INFO +128 -0
  3. pymoove-0.1.0/README.md +110 -0
  4. pymoove-0.1.0/example.ipynb +559 -0
  5. pymoove-0.1.0/pyproject.toml +28 -0
  6. pymoove-0.1.0/scripts/bin_plotting.py +624 -0
  7. pymoove-0.1.0/scripts/clean_rtls_anispace.R +100 -0
  8. pymoove-0.1.0/scripts/data_cleaning.py +79 -0
  9. pymoove-0.1.0/scripts/extracting_boxplot_outliers.py +52 -0
  10. pymoove-0.1.0/scripts/feeder_data_processing.py +95 -0
  11. pymoove-0.1.0/scripts/filtering_out_events.py +60 -0
  12. pymoove-0.1.0/scripts/filtering_out_invalid_events.py +40 -0
  13. pymoove-0.1.0/scripts/moo4feed.R +177 -0
  14. pymoove-0.1.0/scripts/statistical_plots.py +179 -0
  15. pymoove-0.1.0/scripts/zone_info.py +218 -0
  16. pymoove-0.1.0/src/pyMoove/__init__.py +11 -0
  17. pymoove-0.1.0/src/pyMoove/calculations.py +262 -0
  18. pymoove-0.1.0/src/pyMoove/cleaning.py +50 -0
  19. pymoove-0.1.0/src/pyMoove/evaluation/__init__.py +17 -0
  20. pymoove-0.1.0/src/pyMoove/evaluation/metrics.py +102 -0
  21. pymoove-0.1.0/src/pyMoove/evaluation/plots.py +101 -0
  22. pymoove-0.1.0/src/pyMoove/features.py +247 -0
  23. pymoove-0.1.0/src/pyMoove/interaction_detection.py +511 -0
  24. pymoove-0.1.0/src/pyMoove/io.py +236 -0
  25. pymoove-0.1.0/src/pyMoove/models/__init__.py +15 -0
  26. pymoove-0.1.0/src/pyMoove/models/dummy_model.py +8 -0
  27. pymoove-0.1.0/src/pyMoove/models/gradient_boosting.py +38 -0
  28. pymoove-0.1.0/src/pyMoove/models/logistic.py +36 -0
  29. pymoove-0.1.0/src/pyMoove/models/neural_network.py +56 -0
  30. pymoove-0.1.0/src/pyMoove/models/random_forest.py +59 -0
  31. pymoove-0.1.0/src/pyMoove/plotting.py +831 -0
  32. pymoove-0.1.0/src/pyMoove/preprocessing/__init__.py +9 -0
  33. pymoove-0.1.0/src/pyMoove/preprocessing/events.py +165 -0
  34. pymoove-0.1.0/src/pyMoove/preprocessing/identifiers.py +60 -0
  35. pymoove-0.1.0/src/pyMoove/statistics.py +438 -0
  36. pymoove-0.1.0/src/pyMoove/validation.py +152 -0
  37. pymoove-0.1.0/test_pipeline.ipynb +563 -0
  38. pymoove-0.1.0/tests/test_example.py +0 -0
@@ -0,0 +1,47 @@
1
+ # Data & Large Datasets
2
+ data/
3
+ *.parquet
4
+ *.json.gz
5
+ *.csv
6
+ *.xlsx
7
+
8
+ # Virtual environments
9
+ .venv/
10
+ venv/
11
+
12
+ # Python cache
13
+ __pycache__/
14
+ *.py[cod]
15
+
16
+ # Testing & Coverage
17
+ .pytest_cache/
18
+ .coverage
19
+ htmlcov/
20
+
21
+ # IDE & OS Metadata
22
+ .idea/
23
+ .vscode/
24
+ .DS_Store
25
+
26
+ # Build files
27
+ dist/
28
+ build/
29
+ *.egg-info/
30
+
31
+ # R history & workspaces
32
+ .Rhistory
33
+ .RData
34
+ .RDataTmp
35
+
36
+ # UV
37
+ .python-version
38
+ uv.lock
39
+
40
+ <<<<<<< HEAD
41
+
42
+ # Images
43
+ *.png
44
+
45
+ # Test file
46
+ test.ipynb
47
+ testing.ipynb
pymoove-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,128 @@
1
+ Metadata-Version: 2.5
2
+ Name: pyMoove
3
+ Version: 0.1.0
4
+ Summary: Tools for analysing and predicting cow feeding displacement events
5
+ License-Expression: MIT
6
+ Requires-Python: >=3.11
7
+ Requires-Dist: ipython>=9.18.1
8
+ Requires-Dist: matplotlib>=3.8
9
+ Requires-Dist: numpy>=1.26
10
+ Requires-Dist: openpyxl>=3.1.0
11
+ Requires-Dist: pandas<4,>=3.1
12
+ Requires-Dist: pyarrow>=14.0.0
13
+ Requires-Dist: scikit-learn>=1.9.1
14
+ Requires-Dist: scipy>=1.17.1
15
+ Provides-Extra: dev
16
+ Requires-Dist: pytest; extra == 'dev'
17
+ Description-Content-Type: text/markdown
18
+
19
+ # pyMoove
20
+
21
+ Tools for analysing and predicting cow feeding displacement events using sensor data.
22
+
23
+ ## What is pyMoove?
24
+
25
+ Modern dairy farming relies on data to monitor aspects such as the health and growth of dairy cows.
26
+
27
+ When a cow is feeding, it can be displaced by another cow. Understanding these feeding-displacement interactions is important for ensuring that all cows have sufficient access to food.
28
+
29
+ Current approaches often use cameras to identify displacement events. This project aims to analyse and predict these events using sensor data.
30
+
31
+ pyMoove is a collection of Python tools developed to support the analysis and prediction of cow feeding displacement events.
32
+
33
+ ## Related project: moo4feed
34
+
35
+ This project builds upon and makes use of data and concepts related to the moo4feed R package.
36
+
37
+
38
+ ## Project structure
39
+
40
+ ```text
41
+ pyMoove/
42
+ │
43
+ ├── data/ # Local directory for raw and processed datasets (git-ignored)
44
+ │
45
+ ├── scripts/
46
+ │ ├── clean_rtls_anispace.R
47
+ │ └── data_cleaning.py
48
+ │
49
+ ├── src/
50
+ │ └── pyMoove/
51
+ │ └── __init__.py
52
+ │
53
+ ├── tests/
54
+ │ └── test_example.py
55
+ │
56
+ ├── .github/
57
+ │ └── workflows/
58
+ │ └── test.yml
59
+ │
60
+ ├── README.md
61
+ ├── pyproject.toml
62
+ └── .gitignore
63
+
64
+ ```
65
+
66
+ ### Directory and file descriptions
67
+
68
+ | File / directory | Description |
69
+ |---|---|
70
+ | `data/` | Local directory for raw and processed datasets (git-ignored). |
71
+ | `src/pyMoove/` | Main Python package containing the library's functionality. |
72
+ | `__init__.py` | Defines the package's public interface. |
73
+ | `tests/` | Contains automated tests for the library. |
74
+ | `.github/workflows/` | Contains GitHub Actions workflows for automated testing. |
75
+ | `README.md` | Project overview, documentation and development instructions. |
76
+ | `pyproject.toml` | Project metadata, dependencies and build configuration. |
77
+ | `.gitignore` | Specifies files and directories Git should ignore. |
78
+
79
+ **GitHub:** https://github.com/skysheng7/moo4feed
80
+
81
+ moo4feed is an R package developed by a team at the University of British Columbia. It provides tools for extracting feeding and drinking data collected from livestock farming systems.
82
+
83
+ **Website:** https://www.skysheng.io/moo4feed/
84
+
85
+ **Tutorials:** https://www.skysheng.io/moo4feed/articles/index.html
86
+
87
+ ## Development setup
88
+
89
+ ### Requirements
90
+
91
+ - Python 3.11 or later
92
+ - Git
93
+
94
+ ### Setting up the environment
95
+
96
+ Clone the repository:
97
+
98
+ ```bash
99
+ git clone https://github.com/khaloscar/pyMoove
100
+ cd pyMoove
101
+ ```
102
+
103
+ Create and activate a virtual environment:
104
+
105
+ ```bash
106
+ python -m venv .venv
107
+
108
+ # macOS / Linux
109
+ source .venv/bin/activate
110
+
111
+ # Windows
112
+ .venv\Scripts\activate
113
+ ```
114
+
115
+ Install the project and development dependencies:
116
+
117
+ ```bash
118
+ pip install -e ".[dev]"
119
+ ```
120
+
121
+ ### Running tests
122
+
123
+ Run the test suite using pytest:
124
+
125
+ ```bash
126
+ pytest
127
+ ```
128
+
@@ -0,0 +1,110 @@
1
+ # pyMoove
2
+
3
+ Tools for analysing and predicting cow feeding displacement events using sensor data.
4
+
5
+ ## What is pyMoove?
6
+
7
+ Modern dairy farming relies on data to monitor aspects such as the health and growth of dairy cows.
8
+
9
+ When a cow is feeding, it can be displaced by another cow. Understanding these feeding-displacement interactions is important for ensuring that all cows have sufficient access to food.
10
+
11
+ Current approaches often use cameras to identify displacement events. This project aims to analyse and predict these events using sensor data.
12
+
13
+ pyMoove is a collection of Python tools developed to support the analysis and prediction of cow feeding displacement events.
14
+
15
+ ## Related project: moo4feed
16
+
17
+ This project builds upon and makes use of data and concepts related to the moo4feed R package.
18
+
19
+
20
+ ## Project structure
21
+
22
+ ```text
23
+ pyMoove/
24
+ │
25
+ ├── data/ # Local directory for raw and processed datasets (git-ignored)
26
+ │
27
+ ├── scripts/
28
+ │ ├── clean_rtls_anispace.R
29
+ │ └── data_cleaning.py
30
+ │
31
+ ├── src/
32
+ │ └── pyMoove/
33
+ │ └── __init__.py
34
+ │
35
+ ├── tests/
36
+ │ └── test_example.py
37
+ │
38
+ ├── .github/
39
+ │ └── workflows/
40
+ │ └── test.yml
41
+ │
42
+ ├── README.md
43
+ ├── pyproject.toml
44
+ └── .gitignore
45
+
46
+ ```
47
+
48
+ ### Directory and file descriptions
49
+
50
+ | File / directory | Description |
51
+ |---|---|
52
+ | `data/` | Local directory for raw and processed datasets (git-ignored). |
53
+ | `src/pyMoove/` | Main Python package containing the library's functionality. |
54
+ | `__init__.py` | Defines the package's public interface. |
55
+ | `tests/` | Contains automated tests for the library. |
56
+ | `.github/workflows/` | Contains GitHub Actions workflows for automated testing. |
57
+ | `README.md` | Project overview, documentation and development instructions. |
58
+ | `pyproject.toml` | Project metadata, dependencies and build configuration. |
59
+ | `.gitignore` | Specifies files and directories Git should ignore. |
60
+
61
+ **GitHub:** https://github.com/skysheng7/moo4feed
62
+
63
+ moo4feed is an R package developed by a team at the University of British Columbia. It provides tools for extracting feeding and drinking data collected from livestock farming systems.
64
+
65
+ **Website:** https://www.skysheng.io/moo4feed/
66
+
67
+ **Tutorials:** https://www.skysheng.io/moo4feed/articles/index.html
68
+
69
+ ## Development setup
70
+
71
+ ### Requirements
72
+
73
+ - Python 3.11 or later
74
+ - Git
75
+
76
+ ### Setting up the environment
77
+
78
+ Clone the repository:
79
+
80
+ ```bash
81
+ git clone https://github.com/khaloscar/pyMoove
82
+ cd pyMoove
83
+ ```
84
+
85
+ Create and activate a virtual environment:
86
+
87
+ ```bash
88
+ python -m venv .venv
89
+
90
+ # macOS / Linux
91
+ source .venv/bin/activate
92
+
93
+ # Windows
94
+ .venv\Scripts\activate
95
+ ```
96
+
97
+ Install the project and development dependencies:
98
+
99
+ ```bash
100
+ pip install -e ".[dev]"
101
+ ```
102
+
103
+ ### Running tests
104
+
105
+ Run the test suite using pytest:
106
+
107
+ ```bash
108
+ pytest
109
+ ```
110
+