Skip to content

Commit

Permalink
Fix: Tecator wavelength units are in nm.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmabus committed Mar 11, 2023
1 parent 1cf52c4 commit 7ceb987
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skfda/datasets/_real_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ def fetch_tecator(

curves = data['absorp.fdata']
target = data['y'].rename(columns=str.lower)
# Wavelength units are wrongly labeled as mm
curves.argument_names = [curves.argument_names[0].replace("mm", "nm")]
feature_name = curves.dataset_name.lower()
target_names = target.columns.values.tolist()

Expand Down

0 comments on commit 7ceb987

Please sign in to comment.