Get Started

Install

The Python library can be easily installed with pip:

$ pip install -i https://test.pypi.org/simple/ openae

Important

The package is currently hosted ony on Test PyPI due to naming policy conflicts. We are trying to claim the project name openae for PyPI here. Hopefully, we can install the package with pip install openae from PyPI soon.

Minimal example

import numpy as np
import openae.features

# generate random data
rng = np.random.default_rng()
timedata = rng.normal(0, 1, 1024)

# compute spectrum
spectrum = np.fft.rfft(timedata)

# generate input for feature extraction algorithms
input_ = openae.features.Input(
    samplerate=1.0,
    timedata=timedata,
    spectrum=spectrum,
)

# compute features
print(openae.features.rms(input_))
print(openae.features.spectral_centroid(input_))
print(openae.features.spectral_flatness(input_))