semvec/pypi-packages huggingface dataset:
elastic_map 1.0
A tool for nonlinear dimension reduction and visualization of multi-dimensional data
License: MIT
Requires Python: >=3.11,<4.0

# elastic_map

a tool for nonlinear dimension reduction and visualization of multi-dimensional data

## Installation

```bash
$ pip install elastic_map
```

## Usage
`elastic_map` can be used to generate different type of maps from 1D map to 2D maps of and learn to approximate a low-dimensional manifold.

```python
from elastic_map.models import rect2DMap
import scipy.io

data = scipy.io.loadmat('breastCancer.mat')['d1n']   # your data
Map = rect2DMap(10, 10)      # generate rectangular 2D map with rows = 10 and cols = 10
Map.init(data, _type="pci")  # principal component initialization of the map 

parameters = {'stretch': 0, 'bend': 0.1}   # fitting parameters 
Map.fit(data, parameters)   # fit map  
```

## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## License

`elastic_map` was created by CyborgMass (Masoud Ahangary). It is licensed under the terms of the MIT license.

## Credits

`elastic_map` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).