Skip to main content

Optimization of hyperparameters for Machine Learning (AI)

Project description

opPtimizer

Optimization framework for AI pipelines.

Installation

Install Opptimizer from PyPI

Appropriate for most use cases.

pip install opptimizer

Examples of Usage

Basic Pipeline Example

The following example demonstrates a simple pipeline that extends an input string by adding additional parts through modules mod_1 and mod_2, ultimately returning the combined text.

import opptimizer as op

def mod_1(mod_obj, params, tokenData = None):
    tokenData = tokenData + 'result 1'
    return tokenData

def mod_2(mod_obj, params, tokenData = None):
    tokenData = tokenData + ', result 2'
    mod_obj.setResult(tokenData)

executor = op.Executor(modules = [mod_1, mod_2])
response = executor.run('Results: ')

print(f"{response.get_result()}")
Output:
    Results: result 1, result 2

License

This project is licensed under the Apache License 2.0. You may use, modify, and distribute this software freely, provided that you comply with the terms of the license, which include attribution and a disclaimer of warranties. For the full license text, please see Apache License 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opptimizer-2.3.2.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

opptimizer-2.3.2-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file opptimizer-2.3.2.tar.gz.

File metadata

  • Download URL: opptimizer-2.3.2.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.4.0

File hashes

Hashes for opptimizer-2.3.2.tar.gz
Algorithm Hash digest
SHA256 718059ec02133d2d80e9646bbb7801b9ea7e3fb590385f99487237355936fab4
MD5 9dcaf8d248dcd6400e01f399b4d79af3
BLAKE2b-256 7448767383308d7282dfe769ab63b28324f08f4c0fc1246ae370e268365cc5a8

See more details on using hashes here.

File details

Details for the file opptimizer-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: opptimizer-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.4.0

File hashes

Hashes for opptimizer-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca3a19ec7c24a7141559aed508ed0736e73c7a2ad66846e5d6a7e57768ebf9ba
MD5 90919ea4a0a0779ab19c48bc545f5338
BLAKE2b-256 72b16e36feec5bf0ff5eb9b20d5df190d43f639ce8bc7d0240dc48d66972e247

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page