Skip to main content

Learn a callable function from a table of inputs and outputs using XGBoost.

Project description

function-table

function-table learns a callable mapping from a small table of inputs -> outputs using XGBoost and exposes a simple, immutable FTable class.

Improvement (v0.2.0)

  • Enforce immutability
  • Performance improvement
  • Error handling improvement
  • Additional utilities

Installation

pip install function-table

Usage

from function_table import FTable

inputs = [[0], [1], [2], [3], [4]]
outputs = [[0], [1], [4], [9], [16]]  # y = x^2

# Create Ftable
f = FTable(inputs, outputs) 

# Use as a function
print(f(2))

Output:

[[3.995828628540039]]

License

MIT

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

function_table-0.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

function_table-0.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file function_table-0.2.0.tar.gz.

File metadata

  • Download URL: function_table-0.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for function_table-0.2.0.tar.gz
Algorithm Hash digest
SHA256 025fac6318df9e3d62b4b04cd0fc07cd62614814fa71421e369333323e70418c
MD5 ec6485a46c2df078cc332007bd814513
BLAKE2b-256 c692415aead51a6d5523aaffae5dbb5d92c71fd48655eda7877a237f637441ce

See more details on using hashes here.

File details

Details for the file function_table-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: function_table-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for function_table-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0587c570b381e1d883b6cc9dbc6d1bf841b60fc023e222dad6743df920f4dff
MD5 b45fdc7039a88639b2f886fc16bd62e7
BLAKE2b-256 5ba3346067cf727c4ed10e7e3c5b919bd6604d8ebfe43574a102c78090a94cd2

See more details on using hashes here.

Supported by

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