Skip to content

Add Core Parameters #164

@jeremymanning

Description

@jeremymanning

Parent Epic: #155

Task: Add Core Parameters

Description

Extend the HTFA class init method to accept the new parameters (n_levels, backend, random_state, max_iter) with appropriate validation and backward-compatible defaults.

Acceptance Criteria

  • HTFA.init accepts n_levels (int, default=2)
  • HTFA.init accepts backend (str/None, default=None)
  • HTFA.init accepts random_state (int/RandomState/None, default=None)
  • HTFA.init accepts max_iter (int, default=100)
  • All parameters validated using htfa/validation.py framework
  • Existing code without these parameters still works
  • Parameters stored as instance attributes

Technical Details

  • Modify htfa/core/htfa.py HTFA.init method
  • Add parameter validation in htfa/validation.py
  • Use sklearn.utils.check_random_state for random_state validation
  • Ensure defaults match current behavior (n_levels=2, max_iter=100)

Dependencies

  • No external dependencies

Effort Estimate

  • Size: S
  • Hours: 4-6
  • Parallel: true

Definition of Done

  • Code implemented in htfa/core/htfa.py
  • Validation added to htfa/validation.py
  • Unit tests written for parameter validation
  • Existing tests still pass
  • Docstrings updated

Status

COMPLETED - All 4 parameters added with validation, 26 tests created, full backward compatibility.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions