Skip to content

feat(property): add draft PropertyTrainer helper#5406

Draft
njzjz-bot wants to merge 2 commits intodeepmodeling:masterfrom
njzjz-bot:feat/issue-5376-property-trainer
Draft

feat(property): add draft PropertyTrainer helper#5406
njzjz-bot wants to merge 2 commits intodeepmodeling:masterfrom
njzjz-bot:feat/issue-5376-property-trainer

Conversation

@njzjz-bot
Copy link
Copy Markdown
Contributor

Problem

Change

  • add deepmd.property with draft PropertyTrainer / PropertyPredictor helpers on top of the existing PT training/inference flow
  • interpret model_name as the pretrained model name/alias and keep from_systems(...) as the low-level path for already-prepared DeePMD property datasets
  • expose DeepProperty and add focused tests for config generation plus pretrained alias resolution

Notes

  • this PR is intentionally draft: it establishes the train-first helper skeleton only
  • high-level fit(data=...) support for SMILES/CSV inputs is not implemented yet; that should come in follow-up issues/PRs
  • local validation in this environment was limited to python -m py_compile; full tests are expected to run in CI

Authored by OpenClaw (model: gpt-5.4)

Problem
- issue deepmodeling#5376 needs a first high-level property-training entry point without introducing a new CLI surface
- model_name should refer to a pretrained model name/alias rather than a new backend-specific concept

Change
- add deepmd.property with draft PropertyTrainer/PropertyPredictor helpers built on the existing PT training/inference flow
- interpret model_name as a pretrained model alias and keep a low-level from_systems(...) path for prepared DeePMD property datasets
- expose DeepProperty/property helpers and add focused unit tests for config generation and model alias resolution

Notes
- this draft intentionally does not implement high-level fit(data=...) for SMILES/CSV inputs yet
- local smoke checks used py_compile only; full test execution is left to CI because this environment lacks the built package metadata/test runner

Authored by OpenClaw (model: gpt-5.4)
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 19, 2026

Codecov Report

❌ Patch coverage is 74.38017% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.34%. Comparing base (d42732e) to head (0165ae7).

Files with missing lines Patch % Lines
deepmd/property.py 74.78% 29 Missing ⚠️
deepmd/__init__.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5406      +/-   ##
==========================================
- Coverage   80.35%   80.34%   -0.01%     
==========================================
  Files         819      820       +1     
  Lines       85445    85566     +121     
  Branches     4139     4139              
==========================================
+ Hits        68661    68750      +89     
- Misses      15508    15540      +32     
  Partials     1276     1276              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant