Skip to content

feat(no-priors): create standalone no-priors characterization operator#686

Merged
danielelotito merged 34 commits intomainfrom
dl_separate_no_priors
Mar 23, 2026
Merged

feat(no-priors): create standalone no-priors characterization operator#686
danielelotito merged 34 commits intomainfrom
dl_separate_no_priors

Conversation

@danielelotito
Copy link
Copy Markdown
Collaborator

@danielelotito danielelotito commented Mar 11, 2026

refactor(operators): extract no-priors characterization from TRIM into separate plugin

  • Create new no-priors-characterization operator plugin per issue feat: create a no-priors characterization operator #683
  • Move sampling logic to new plugin
  • Update TRIM to depend on ado-no-priors-characterization
  • Add examples and documentation
  • Fix small issue about edge case in high dim sampling

This contributes to #677

Close #683

…o separate plugin

- Create new no-priors-characterization operator plugin per issue [#683](#683)
- Move sampling logic to new plugin
- Update TRIM to depend on ado-no-priors-characterization
- Add examples and documentation
- Fix small issue about edge case in high dim sampling

Related to [#683](#683)
Comment thread examples/no-priors-characterization/example_yamls/space_reaction.yaml Outdated
Comment thread examples/no-priors-characterization/README.md Outdated
Comment thread examples/no-priors-characterization/README.md Outdated
Comment thread examples/no-priors-characterization/README.md Outdated
Comment thread examples/no-priors-characterization/README.md
Comment thread plugins/operators/no-priors-characterization/pyproject.toml Outdated
Comment thread plugins/operators/no-priors-characterization/README.md Outdated
Comment thread plugins/operators/no-priors-characterization/README.md Outdated
danielelotito and others added 10 commits March 12, 2026 09:27
Co-authored-by: Alessandro Pomponio <10339005+AlessandroPomponio@users.noreply.github.com>
Signed-off-by: Daniele Lotito <99284466+danielelotito@users.noreply.github.com>
Details:
Removed reorder_df_by_importance function (moved to orchestrator/utilities/pandas.py)
Optimized set operations for better performance
Fixed docstrings to Google format without internal variable references
Used unique() instead of set() for NaN-safe handling
Removed unnecessary comment
Inverted logic in order_df_for_get_index_list_nn_high_dimensional to reduce nesting
…tion

The samples parameter now correctly specifies NEW entities to sample,
not total desired samples. Previously it subtracted existing measurements,
causing crashes when existing measurements exceeded the requested count.

Now always samples exactly the requested number of NEW entities,
regardless of existing measurements in the space.
Comment thread examples/no-priors-characterization/README.md Outdated
Comment thread examples/no-priors-characterization/README.md
Comment thread examples/no-priors-characterization/README.md Outdated
Comment thread orchestrator/utilities/pandas.py Outdated
Comment thread plugins/operators/no-priors-characterization/README.md Outdated
Comment thread plugins/operators/no-priors-characterization/README.md
@AlessandroPomponio AlessandroPomponio changed the title feat(operator): create standalone no-priors characterization operation feat(no-priors): create standalone no-priors characterization operation Mar 16, 2026
@AlessandroPomponio AlessandroPomponio changed the title feat(no-priors): create standalone no-priors characterization operation feat(no-priors): create standalone no-priors characterization operator Mar 16, 2026
danielelotito and others added 10 commits March 16, 2026 15:27
Co-authored-by: Alessandro Pomponio <10339005+AlessandroPomponio@users.noreply.github.com>
Signed-off-by: Daniele Lotito <99284466+danielelotito@users.noreply.github.com>
"the error level is the same one that's used for exceptions: either this is an exception worthy occurrence or this should be only a warning"
- Add ado-core dependency
- Add build-system configuration with setuptools
- Add tool.setuptools_scm with root path
- Addresses review comment to follow plugin-development.mdc guidelines
@AlessandroPomponio AlessandroPomponio added the ci Enables CI integration label Mar 18, 2026
Comment thread examples/no-priors-characterization/README.md Outdated
Comment thread plugins/operators/no-priors-characterization/README.md
Comment thread website/docs/operators/no-priors-characterization.md
- Add optional generatorid parameter to SpacePoint.to_entity() method
- Defaults to 'unk' if not specified for backward compatibility
- Pass generatorid to Entity constructor to properly track entity origin
- Add docstring explaining the parameter and return value

This enables callers to specify the generator that created an entity,
fixing the issue where entities were always created with 'unk' as the
generatorid.
Update get_list_of_entities_from_df_and_space() to pass
'no_priors_characterization' as generatorid when creating entities.
This ensures entities are properly tagged with their generator instead
of defaulting to 'unk'.
Replace 'unk' with 'no_priors_characterization' in example output
to reflect the actual generatorid now being set correctly.
@danielelotito
Copy link
Copy Markdown
Collaborator Author

Merge #724 into main, and then this one (the feat commit of #724 is already cherrypicked and tested here), I will request the review as soon as #724 is approved.

@danielelotito
Copy link
Copy Markdown
Collaborator Author

danielelotito commented Mar 20, 2026

#724 got approved,
@AlessandroPomponio I tried solve the conflicts with the lock file, but I end up regenerating it, tell me how to proceed if this is not okay

@danielelotito danielelotito marked this pull request as ready for review March 20, 2026 16:27
@danielelotito danielelotito enabled auto-merge March 20, 2026 16:27
@danielelotito danielelotito force-pushed the dl_separate_no_priors branch from f6f5615 to d045d9f Compare March 20, 2026 16:40
danielelotito and others added 4 commits March 23, 2026 15:11
Signed-off-by: DRL NextGen <220003231+DRL-NextGen@users.noreply.github.com>
Signed-off-by: DRL NextGen <220003231+DRL-NextGen@users.noreply.github.com>
@danielelotito danielelotito force-pushed the dl_separate_no_priors branch from 5be1a8f to 789953f Compare March 23, 2026 15:17
@DRL-NextGen
Copy link
Copy Markdown
Member

DRL-NextGen commented Mar 23, 2026

Checks Summary

Last run: 2026-03-23T17:03:04.388Z

Mend Unified Agent vulnerability scan found 1 vulnerabilities:

Severity Identifier Package Details Fix
🔸 Low CVE-2026-4539 pygments-2.19.2-py3-none-any.whl
A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function A...A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function AdlLexer of the file pygments/lexers/archetype.py. The manipulation results in inefficient regular expression complexity. The attack is only possible with local access. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
Not Available

Copy link
Copy Markdown
Member

@AlessandroPomponio AlessandroPomponio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@danielelotito danielelotito added this pull request to the merge queue Mar 23, 2026
Merged via the queue into main with commit 94c6b8f Mar 23, 2026
18 of 19 checks passed
@danielelotito danielelotito deleted the dl_separate_no_priors branch March 23, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Enables CI integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: create a no-priors characterization operator

4 participants