cheminfo / cheminfo/jsDOE

Helper functions

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

We have an array of objects as input

- label: temperature, min: 0, max: 100: nbSamples: 5, sampling: 'uniform'
- label: solvant, min 0.1, max 1, nbSamples: 3, sampling: 'log'
- label: 'product 1': values: 'A', 'B', 'C', 'D'
- label: 'product 2': values: 'E', 'F', 'G'

We need to create a matrix similar to:

[
[0, 25, 50, 75, 100],
[0.1, 0.3, 1],
[0, 1, 2, 3],
[0, 1, 2],
]

And receive as well a mapping that allows to revert this operation

We send the matrix to a procedure that will select the parameters to test:

I want 2 experiments
[
[0,2,1,2],
[1,2,2,2],
]

For my 2 experiments recreate the array of object:
[
{ temperature: 50, 'product 1': A, ...}
]

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.