Skip to content

Add property to specify min/max-optimal #77

Closed

Description

@NiklasMelton

We need to add a property to the CVI classes that specifies whether the CVI is min or max-optimal.

Activity

  1. added
    enhancement
    on Mar 16, 2024
  2. NiklasMelton commented on Mar 16, 2024

    @NiklasMelton
    CollaboratorAuthor

    Might also be a good idea to add the bounds. i.e. [0.0, np.inf] or [0.0, 1.0]

  3. NiklasMelton commented on Mar 16, 2024

    @NiklasMelton
    CollaboratorAuthor

    perhaps something like:

    from dataclasses import dataclass
    import numpy as np
    from typing import Literal
    
    
    @dataclass
    class CVIInfo:
        optimality: Literal["min", "max"],
        lower_bound: float
        upper_bound: float
    
    
    class SomeCVI:
        def __init__(self):
            ...
            self.info = CVIInfo("min", 0.0, np.inf)
    
  4. self-assigned this
    on May 31, 2024
  5. linked a pull request that will close this issueadd CVI Info data class #85on Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions