semvec/pypi-packages huggingface dataset:
mml-suggest 0.3.1
This is the MML suggest plugin, providing methods to compile pipelines from previous knowledge.
License: MIT
Requires Python: >=3.8

# MML Suggest plugin

This plugin provides a method to compile pipeline blueprints for new tasks. 

# Install

> Note: this plugin depends on another plugin (mml-similarity) which is installed automatically - though 
> this has no side effects.

```commandline
pip install mml-suggest
```


# Usage

To leverage existing models and task distances these must be reused:

```commandline
mml suggest pivot.name=my_target_task +reuse.fed=my_distance_project reuse.models=[some_proj,another_proj,...]
```

This will compile a pipeline blueprint for `my_target_task` based on the `fed` task similarities from 
`my_distance_project` leveraging all models previously trained in the specified projects.

To use the blueprint call 

```commandline
mml train pivot.name=my_target_task reuse.blueprint=my_blueprint_proj#the_blueprint_number mode.use_blueprint=true
```
mml-sql 0.3.0
This is the MML SQL plugin, providing an SQL backend for mml multiruns.
License: MIT
Requires Python: >=3.8

# MML SQL plugin

This plugin provides SQL support for the optuna multiruns of MML.

# Install

Install the plugin with pip. In addition, you require the `mysqlclient` package.

```commandline
pip install mysqlclient
```

You also need to prepare the sql backend and add some information to your mml.env file.


## set up my sql database

Install MySQL and enter interactive MySQL session:


```commandline
    sudo apt-get install mysql-server default-libmysqlclient-dev
    sudo mysql -u root -p
```

Create MySQL user and database (you can use different names for database, user and password):

```commandline
    mysql> CREATE DATABASE IF NOT EXISTS mml_hpo;
    mysql> CREATE USER 'mml_user'@'%' IDENTIFIED WITH mysql_native_password BY 'password123';
    mysql> GRANT ALL PRVILEGES ON mml_hpo.* TO 'mml_user'@'%';
    mysql> FLUSH PRIVILEGES;
```

## set up secrets

This plugin expects the following secrets in the `mml.env` file (adapt to your previously chosen values):

```
export MML_MYSQL_USER=mml_user
export MML_MYSQL_PW=password123
export MML_MYSQL_PORT=3306
export MML_HOSTNAME_OF_MYSQL_HOST=localhost
export MML_MYSQL_DATABASE=mml_hpo
```

## grant access to other workstations

This part is optional and only required if you want other machines to access your local database (e.g. from a remote cluster):

```commandline
    sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
    # change the line 'bind-adress = ...' to be a comment by adding a hashtag in front
    # do not forget to save changes!
    service mysql restart
```

# Usage

Instead of `hpo=default` just use `hpo=sql` when starting your `mml ... --multirun`. 

# Note

Since `mysqlclient` has a GPL-2.0 license this feature is outsourced to an internal plugin instead of `mml-core`.