Skip to content

Add parameters for hyperparameterisationΒ #72

@rcannood

Description

@rcannood

I propose adding this section:

config.vsh.yaml:

argument_groups:
  - name: Parameters
    arguments:
      - type: integer
        name: --foo
        info:
          optimize:
            type: linear
            lower: 10
            upper: 20
        default: 10

And then in the code:

out = harmonypy.run_harmony(
    data_mat=adata_to_correct.layers["preprocessed"],
    meta_data=adata_to_correct.obs,
    vars_use="batch_str",
    foo=par["foo"],
)

Sometimes you need an exponential uniform distribution

argument_groups:
  - name: Parameters
    arguments:
      - type: double
        name: --foo
        info:
          optimize:
            type: expuniform
            lower: 0.001
            upper: 0.1
        default: 0.01

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions