semvec/pypi-packages huggingface dataset:
premodel 1.1
Pre-built Machine Learning Models


    K-Nearest Neighbours

    

predict: Returns the predicted value
    

visualize: Returns  a matplotlib scatter plot of the data along with the predicted point and its value. (Requires the calling of predict() method first)
    

euclidean: Returns the Euclidean distance of the given point from all the points given in the dataset
    
    


Linear Regression

    

fit: Trains the model to the given data and return the slope and intercept values
    

predict: Returns the predicted value
brocolli 4.0.2
everything in pytorch
Requires Python: >=3.6
Keywords: machine-learning,pytorch,caffe,torchfx

# brocolli

torch fx based pytorch model converter, including pytorch2caffe, pytorch2onnx.  
torch fx based pytorch model quantizier.

# Installation
```
pip install brocolli
```

# How to use
* torch2caffe
    * caffe installation
    ```bash
    pip install brocolli-caffe
    ```

    ```
    import torchvision.models as models
    from brocolli.converter.pytorch_caffe_parser import PytorchCaffeParser

    net = models.alexnet(pretrained=False)
    x = torch.rand(1, 3, 224, 224)
    pytorch_parser = PytorchCaffeParser(net, x)
    pytorch_parser.convert()
    pytorch_parser.save('alexnet')
    ```
    run this script until you see "accuracy test passed" on screen, then you can get alexnet.caffemodel and alexnet.prototxt under under current folder.

* torch2onnx
    ```
    import torchvision.models as models
    from brocolli.converter.pytorch_onnx_parser import PytorchOnnxParser

    net = models.alexnet(pretrained=False)
    x = torch.rand(1, 3, 224, 224)
    pytorch_parser = PytorchOnnxParser(net, x)
    pytorch_parser.convert()
    pytorch_parser.save('alexnet.onnx')
    ```
    run this script until you see "accuracy test passed" on screen, then you can get alexnet.onnx under current folder.

# Contact
 QQ Group: 597059928
 
 ![image](https://raw.githubusercontent.com/inisis/brocolli/master/imgs/QGRPOUP.png)
 
# Show your support
  Give a 🌟 if this project helpes~
pltsave 0.0.1
Data management library to save data and plots to hdf5 files
Requires Python: >=3.8

## Install

`pip install pltsave`

## Installation in dev mode

`pip install -e .[dev]`

or

`python setup.py develop`

## Usage

Save a figure:

```python
import pltsave

figure_info = pltsave.dumps(fig)
```

Load the figure

```python
fig2 = plt.figure()
pltsave.load_fig(fig2, figure_info)
```