ml4xcube


Nameml4xcube JSON
Version 1.1.0 PyPI version JSON
download
home_pageNone
SummaryML package for data cubes
upload_time2024-09-06 16:42:19
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License Copyright (c) 2022 by ScaDS.AI, the xcube development team and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords machine learning tools data cube utilities
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ml4xcube: Machine Learning Toolkits for Data Cubes

Welcome to `ml4xcube`, a comprehensive Python-based toolkit designed for researchers and developers in the field of machine learning with an emphasis on `xarray` data cubes. Our toolkit is engineered to provide specialized and robust support for data cube management and analysis, operating with the state-of-the-art machine learning libraries (1) `scikit-learn`, (2) `PyTorch` and (3) `TensorFlow`. 

## Installation

Get started with `ml4xcube` effortlessly by installing it directly through pip:
```bash
pip install ml4xcube
```
or Conda:
```bash
conda install -c conda-forge ml4xcube
```

Make sure you have Python version 3.8 or higher.

If you're planning to use `ml4xcube` with TensorFlow or PyTorch, set up these frameworks properly in your Conda environment. 

## Features

- Data preprocessing and normalization/standardization functions
- Gap filling features
- Dataset creation and train-/ test split sampling techniques
- Trainer classes for `sklearn`, `TensorFlow` and `PyTorch`
- Distributed training framework compatible with `PyTorch`
- chunk utilities for working with data cubes

## Usage

To use `ml4xcube` in your project, simply import the necessary module:

```python
from ml4xcube.preprocessing import normalize, standardize
from ml4xcube.training.pytorch import Trainer
# Other imports...
```

You can then call the functions directly:

```python
# Normalizing data
normalized_data = normalize(your_data, data_min, data_max)

# Trainer instance
trainer = Trainer(
    model           = reg_model,
    train_data      = train_loader,
    test_data       = test_loader,
    optimizer       = optimizer,
    best_model_path = best_model_path,
    early_stopping  = True,
    patience        = 3,
    epochs          = epochs
)

# Start training
reg_model = trainer.train()
```

## License

`ml4xcube` is released under the MIT License. See the [LICENSE](https://github.com/deepesdl/ML-Toolkits/blob/master/LICENSE) file for more details.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ml4xcube",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "machine learning, tools, data cube utilities",
    "author": null,
    "author_email": "Julia Peters <julia.peters@informatik.uni-leipzig.de>",
    "download_url": "https://files.pythonhosted.org/packages/78/c6/70e97110eda44369beb0d13a4171a756385d1d0b78e32b41aec8c91560a8/ml4xcube-1.1.0.tar.gz",
    "platform": null,
    "description": "# ml4xcube: Machine Learning Toolkits for Data Cubes\n\nWelcome to `ml4xcube`, a comprehensive Python-based toolkit designed for researchers and developers in the field of machine learning with an emphasis on `xarray` data cubes. Our toolkit is engineered to provide specialized and robust support for data cube management and analysis, operating with the state-of-the-art machine learning libraries (1) `scikit-learn`, (2) `PyTorch` and (3) `TensorFlow`. \n\n## Installation\n\nGet started with `ml4xcube` effortlessly by installing it directly through pip:\n```bash\npip install ml4xcube\n```\nor Conda:\n```bash\nconda install -c conda-forge ml4xcube\n```\n\nMake sure you have Python version 3.8 or higher.\n\nIf you're planning to use `ml4xcube` with TensorFlow or PyTorch, set up these frameworks properly in your Conda environment. \n\n## Features\n\n- Data preprocessing and normalization/standardization functions\n- Gap filling features\n- Dataset creation and train-/ test split sampling techniques\n- Trainer classes for `sklearn`, `TensorFlow` and `PyTorch`\n- Distributed training framework compatible with `PyTorch`\n- chunk utilities for working with data cubes\n\n## Usage\n\nTo use `ml4xcube` in your project, simply import the necessary module:\n\n```python\nfrom ml4xcube.preprocessing import normalize, standardize\nfrom ml4xcube.training.pytorch import Trainer\n# Other imports...\n```\n\nYou can then call the functions directly:\n\n```python\n# Normalizing data\nnormalized_data = normalize(your_data, data_min, data_max)\n\n# Trainer instance\ntrainer = Trainer(\n    model           = reg_model,\n    train_data      = train_loader,\n    test_data       = test_loader,\n    optimizer       = optimizer,\n    best_model_path = best_model_path,\n    early_stopping  = True,\n    patience        = 3,\n    epochs          = epochs\n)\n\n# Start training\nreg_model = trainer.train()\n```\n\n## License\n\n`ml4xcube` is released under the MIT License. See the [LICENSE](https://github.com/deepesdl/ML-Toolkits/blob/master/LICENSE) file for more details.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2022 by ScaDS.AI, the xcube development team and contributors  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "ML package for data cubes",
    "version": "1.1.0",
    "project_urls": null,
    "split_keywords": [
        "machine learning",
        " tools",
        " data cube utilities"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "06b428648bf909f81689263030055f73b711f81490ea7b98f239d34add7799fb",
                "md5": "88a2a43979b8f17f0dccfd9ff1ca1a50",
                "sha256": "0f4f0242c426ee845296d0c1bc373a2907f13bce3921fbb42d7bb9defbecf26d"
            },
            "downloads": -1,
            "filename": "ml4xcube-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "88a2a43979b8f17f0dccfd9ff1ca1a50",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 59013,
            "upload_time": "2024-09-06T16:42:17",
            "upload_time_iso_8601": "2024-09-06T16:42:17.267430Z",
            "url": "https://files.pythonhosted.org/packages/06/b4/28648bf909f81689263030055f73b711f81490ea7b98f239d34add7799fb/ml4xcube-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "78c670e97110eda44369beb0d13a4171a756385d1d0b78e32b41aec8c91560a8",
                "md5": "cbd8a0f89e9b1a7e5a1aaf049c96bf73",
                "sha256": "6a61432b4878f7ac45fe59ff3b5e8859f096e8c7b32d8be8d03b95cf88c446d5"
            },
            "downloads": -1,
            "filename": "ml4xcube-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "cbd8a0f89e9b1a7e5a1aaf049c96bf73",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 48212,
            "upload_time": "2024-09-06T16:42:19",
            "upload_time_iso_8601": "2024-09-06T16:42:19.211355Z",
            "url": "https://files.pythonhosted.org/packages/78/c6/70e97110eda44369beb0d13a4171a756385d1d0b78e32b41aec8c91560a8/ml4xcube-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-06 16:42:19",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ml4xcube"
}
        
Elapsed time: 0.93243s