semvec/pypi-packages huggingface dataset:
model-writer 0.0.0.2
Model Writer For ML training or test time
License: MIT
Requires Python: >=3

# [SSUmunity Labs](https://www.facebook.com/ai.ssumunity) - Model Value Writer

This repo is a module for handling DeepLearning model values
(accuracy, loss, etc...) based on csv and 'ModelValue' class.

## Simple Use
~~~
from model_writer import *

> mv1 = ModelValue("model1", {"accuracy": 0.7})
> mv2 = ModelValue("model2", {"accuracy": 0.3})

> mv1.set_value("loss",0.3)
> mv2.set_value("loss",0.64)

> writer = ModelValuesWriter([mv1, mv2], io_name='simple')
> writer.to_csv('./test.csv')
> writer.to_md('./README.md')
~~~
#### Result
[](from_simple)

|          |   model1 |   model2 |
|:---------|---------:|---------:|
| accuracy |      0.7 |     0.5  |
| loss     |      0.3 |     0.64 |
[](from_simple)


## ModelValue class
"ModelValue" is a class for some values of one model during training or eval.

#### Useage
You can handle this class like this.
~~~
from model_writer import *

> mv1 = ModelValue("model1", {"accuracy": 0.7})
> mv2 = ModelValue("model2", {"loss": 0.3})

# use 'mv.set_value(value_name, value)' to add value in 'mv' instance.
> mv1.set_value("loss",0.3)
> mv2.set_value("accuracy",0.64)
~~~

## ModelWriter class
"ModelWriter" is a class for write to .md or .csv file with ModelValue classes.

#### Useage
You can handle this class like this.
~~~
> writer = ModelValuesWriter([mv1, mv2], io_name='writer')
> writer.to_csv('./test.csv') # save mv1, mv2 as csv file.
> writer.to_md('./README.md') # save mv1, mv2 as a chart in markdown file between "io_name" token.
~~~

#### Result
You can see the chart below is wrapped by "from_{io_name}" token in edit mode.

[](from_writer)

|          |   model1 |   model2 |
|:---------|---------:|---------:|
| accuracy |      0.7 |     0.5  |
| loss     |      0.3 |     0.64 |
[](from_writer)

## ModelReader class
"ModelReader" is a class for read from .csv file with ModelValue classes.

#### Useage
You can handle this class like this.
~~~
> reader = ModelValuesReader('./test.csv')
> mv1 = reader.search_model_value('model1')
> mv1.set_value('accuracy', 2)
>
> writer = ModelValuesWriter(reader.classes, io_name='reader')
> writer.to_csv('./test.csv') # save mv1, mv2 as csv file.
> writer.to_md('./README.md') # save mv1, mv2 as a chart in markdown file between "io_name" token.
~~~

#### Result
[](from_reader)

|          |   model1 |   model2 |
|:---------|---------:|---------:|
| accuracy |      2   |     0.5  |
| loss     |      0.3 |     0.64 |
[](from_reader)

## License
Project is published under the MIT licence. Feel free to clone and modify repo as you want, but don'y forget to add reference to authors :)
unimi_unsubscribe 0.0.1
Simple package to stop receiving annoying emails from Unimi.
License: MIT

Unimi Unsubscribe
=============================
|pip|

Simple package to stop receiving annoying emails from Unimi.

Installation
---------------------
Just run in your terminal:

.. code:: bash

    pip install unimi_unsubscribe


How to use it
-------------------
Write a simple script like the `given example`_:

.. code:: python

    from unimi_unsubscribe import unsubscribe

    unsubscribe("name.surname@studenti.unimi.it", "my_password")

.. _given example: https://github.com/LucaCappelletti94/unimi_unsubscribe/blob/master/example.py


.. |pip| image:: https://badge.fury.io/py/unimi_unsubscribe.svg
    :target: https://badge.fury.io/py/unimi_unsubscribe


Output example
--------------------
An example of output of trhis script is the following:

.. code:: bash

    Proceeding to unsubscribe from the following lists:
    ['agevolazioni_e_convenzioni_teatro_stud@liste.unimi.it',
    'aistp-1@liste.unimi.it',
    ...
    'studenti.ultimoanno@liste.unimi.it',
    'studentiepostlaurea@liste.unimi.it']

    Remember that you can always resubscribe to these.

    Proceed? [y/n] y

    All done: you will now receive a mail from the SYMPA service with the results of the unsubscribe commands.
    Some lists cannot be unsubscribed with this channel, as they are required by the university.
    You may receive an error from those lists.