Skip to main content

No project description provided

Project description

Setup

This setup expects conda is installed in some form already. The minimal conda installer is available here.

  1. Create a new conda environment for the project:

     conda create -n ml4a python=3.8 -y
    
  2. Enter the conda environment:

     conda activate ml4a
    
  3. Install the ml4a Python package:

     pip install https://github.com/golmschenk/ml4a/tarball/master
    
  4. Download the trained model states:

     python -m ml4a.download_model_states
    

    We note that the model states downloaded via this command are for minimal model architectures designed for ease of use. The model state for our current best "parameters to phase amplitudes" model architecture can be downloaded here.

  5. Exit the conda environment:

     conda deactivate
    

Usage

  1. Enter the conda environment created during setup:

     conda activate ml4a
    
  2. Add your input data to a CSV file. Each row should be a single example and the values should be delimited commas.There is no requirement for the number of digits for a value. Scientific notation using e or E is allowed. See parameters_template.csv and phase_amplitudes_template.csv for examples.

  3. Run the inference for either a parameters or phase amplitudes CSV input, specifying your desired input and output paths:

     python -m ml4a.infer_from_phase_amplitudes_to_parameters input_phase_amplitudes.csv output_parameters.csv
    

    or

     python -m ml4a.infer_from_parameters_to_phase_amplitudes input_parameters.csv output_phase_amplitudes.csv
    
  4. Exit conda environment:

     conda deactivate
    

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

haplo-0.2.0.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

haplo-0.2.0-py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 3

Supported by

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