|
from typing import List |
|
|
|
import datasets |
|
|
|
import pandas |
|
|
|
|
|
VERSION = datasets.Version("1.0.0") |
|
|
|
|
|
DESCRIPTION = "Lrs efficiency dataset from the UCI repository." |
|
_HOMEPAGE = "https://archive-beta.ics.uci.edu/dataset/93/low+resolution+spectrometer" |
|
_URLS = ("https://archive-beta.ics.uci.edu/dataset/93/low+resolution+spectrometer") |
|
_CITATION = """ |
|
@misc{misc_lrs_53, |
|
author = {Fisher,R. A. & Fisher,R.A.}, |
|
title = {{Lrs}}, |
|
year = {1988}, |
|
howpublished = {UCI Machine Learning Repository}, |
|
note = {{DOI}: \\url{10.24432/C56C76}} |
|
}""" |
|
|
|
|
|
urls_per_split = { |
|
"train": "https://huggingface.co/datasets/mstz/lrs/raw/main/lrs.csv" |
|
} |
|
features_types_per_config = { |
|
"lrs": { |
|
"right_ascension": datasets.Value("float64"), |
|
"declination": datasets.Value("float64"), |
|
"scale_factor": datasets.Value("float64"), |
|
"blue_base_1": datasets.Value("float64"), |
|
"blue_base_2": datasets.Value("float64"), |
|
"red_base_1": datasets.Value("float64"), |
|
"red_base_2": datasets.Value("float64"), |
|
"flux_blue_0": datasets.Value("float64"), |
|
"flux_blue_1": datasets.Value("float64"), |
|
"flux_blue_2": datasets.Value("float64"), |
|
"flux_blue_3": datasets.Value("float64"), |
|
"flux_blue_4": datasets.Value("float64"), |
|
"flux_blue_5": datasets.Value("float64"), |
|
"flux_blue_6": datasets.Value("float64"), |
|
"flux_blue_7": datasets.Value("float64"), |
|
"flux_blue_8": datasets.Value("float64"), |
|
"flux_blue_9": datasets.Value("float64"), |
|
"flux_blue_10": datasets.Value("float64"), |
|
"flux_blue_11": datasets.Value("float64"), |
|
"flux_blue_12": datasets.Value("float64"), |
|
"flux_blue_13": datasets.Value("float64"), |
|
"flux_blue_14": datasets.Value("float64"), |
|
"flux_blue_15": datasets.Value("float64"), |
|
"flux_blue_16": datasets.Value("float64"), |
|
"flux_blue_17": datasets.Value("float64"), |
|
"flux_blue_18": datasets.Value("float64"), |
|
"flux_blue_19": datasets.Value("float64"), |
|
"flux_blue_20": datasets.Value("float64"), |
|
"flux_blue_21": datasets.Value("float64"), |
|
"flux_blue_22": datasets.Value("float64"), |
|
"flux_blue_23": datasets.Value("float64"), |
|
"flux_blue_24": datasets.Value("float64"), |
|
"flux_blue_25": datasets.Value("float64"), |
|
"flux_blue_26": datasets.Value("float64"), |
|
"flux_blue_27": datasets.Value("float64"), |
|
"flux_blue_28": datasets.Value("float64"), |
|
"flux_blue_29": datasets.Value("float64"), |
|
"flux_blue_30": datasets.Value("float64"), |
|
"flux_blue_31": datasets.Value("float64"), |
|
"flux_blue_32": datasets.Value("float64"), |
|
"flux_blue_33": datasets.Value("float64"), |
|
"flux_blue_34": datasets.Value("float64"), |
|
"flux_blue_35": datasets.Value("float64"), |
|
"flux_blue_36": datasets.Value("float64"), |
|
"flux_blue_37": datasets.Value("float64"), |
|
"flux_blue_38": datasets.Value("float64"), |
|
"flux_blue_39": datasets.Value("float64"), |
|
"flux_blue_40": datasets.Value("float64"), |
|
"flux_blue_41": datasets.Value("float64"), |
|
"flux_blue_42": datasets.Value("float64"), |
|
"flux_blue_43": datasets.Value("float64"), |
|
"flux_red_0": datasets.Value("float64"), |
|
"flux_red_1": datasets.Value("float64"), |
|
"flux_red_2": datasets.Value("float64"), |
|
"flux_red_3": datasets.Value("float64"), |
|
"flux_red_4": datasets.Value("float64"), |
|
"flux_red_5": datasets.Value("float64"), |
|
"flux_red_6": datasets.Value("float64"), |
|
"flux_red_7": datasets.Value("float64"), |
|
"flux_red_8": datasets.Value("float64"), |
|
"flux_red_9": datasets.Value("float64"), |
|
"flux_red_10": datasets.Value("float64"), |
|
"flux_red_11": datasets.Value("float64"), |
|
"flux_red_12": datasets.Value("float64"), |
|
"flux_red_13": datasets.Value("float64"), |
|
"flux_red_14": datasets.Value("float64"), |
|
"flux_red_15": datasets.Value("float64"), |
|
"flux_red_16": datasets.Value("float64"), |
|
"flux_red_17": datasets.Value("float64"), |
|
"flux_red_18": datasets.Value("float64"), |
|
"flux_red_19": datasets.Value("float64"), |
|
"flux_red_20": datasets.Value("float64"), |
|
"flux_red_21": datasets.Value("float64"), |
|
"flux_red_22": datasets.Value("float64"), |
|
"flux_red_23": datasets.Value("float64"), |
|
"flux_red_24": datasets.Value("float64"), |
|
"flux_red_25": datasets.Value("float64"), |
|
"flux_red_26": datasets.Value("float64"), |
|
"flux_red_27": datasets.Value("float64"), |
|
"flux_red_28": datasets.Value("float64"), |
|
"flux_red_29": datasets.Value("float64"), |
|
"flux_red_30": datasets.Value("float64"), |
|
"flux_red_31": datasets.Value("float64"), |
|
"flux_red_32": datasets.Value("float64"), |
|
"flux_red_33": datasets.Value("float64"), |
|
"flux_red_34": datasets.Value("float64"), |
|
"flux_red_35": datasets.Value("float64"), |
|
"flux_red_36": datasets.Value("float64"), |
|
"flux_red_37": datasets.Value("float64"), |
|
"flux_red_38": datasets.Value("float64"), |
|
"flux_red_39": datasets.Value("float64"), |
|
"flux_red_40": datasets.Value("float64"), |
|
"flux_red_41": datasets.Value("float64"), |
|
"flux_red_42": datasets.Value("float64"), |
|
"flux_red_43": datasets.Value("float64"), |
|
"flux_red_44": datasets.Value("float64"), |
|
"flux_red_45": datasets.Value("float64"), |
|
"flux_red_46": datasets.Value("float64"), |
|
"flux_red_47": datasets.Value("float64"), |
|
"flux_red_48": datasets.Value("float64"), |
|
"lrs_class": datasets.ClassLabel(num_lrs_classes=9) |
|
}, |
|
"lrs_0": { |
|
"right_ascension": datasets.Value("float64"), |
|
"declination": datasets.Value("float64"), |
|
"scale_factor": datasets.Value("float64"), |
|
"blue_base_1": datasets.Value("float64"), |
|
"blue_base_2": datasets.Value("float64"), |
|
"red_base_1": datasets.Value("float64"), |
|
"red_base_2": datasets.Value("float64"), |
|
"flux_blue_0": datasets.Value("float64"), |
|
"flux_blue_1": datasets.Value("float64"), |
|
"flux_blue_2": datasets.Value("float64"), |
|
"flux_blue_3": datasets.Value("float64"), |
|
"flux_blue_4": datasets.Value("float64"), |
|
"flux_blue_5": datasets.Value("float64"), |
|
"flux_blue_6": datasets.Value("float64"), |
|
"flux_blue_7": datasets.Value("float64"), |
|
"flux_blue_8": datasets.Value("float64"), |
|
"flux_blue_9": datasets.Value("float64"), |
|
"flux_blue_10": datasets.Value("float64"), |
|
"flux_blue_11": datasets.Value("float64"), |
|
"flux_blue_12": datasets.Value("float64"), |
|
"flux_blue_13": datasets.Value("float64"), |
|
"flux_blue_14": datasets.Value("float64"), |
|
"flux_blue_15": datasets.Value("float64"), |
|
"flux_blue_16": datasets.Value("float64"), |
|
"flux_blue_17": datasets.Value("float64"), |
|
"flux_blue_18": datasets.Value("float64"), |
|
"flux_blue_19": datasets.Value("float64"), |
|
"flux_blue_20": datasets.Value("float64"), |
|
"flux_blue_21": datasets.Value("float64"), |
|
"flux_blue_22": datasets.Value("float64"), |
|
"flux_blue_23": datasets.Value("float64"), |
|
"flux_blue_24": datasets.Value("float64"), |
|
"flux_blue_25": datasets.Value("float64"), |
|
"flux_blue_26": datasets.Value("float64"), |
|
"flux_blue_27": datasets.Value("float64"), |
|
"flux_blue_28": datasets.Value("float64"), |
|
"flux_blue_29": datasets.Value("float64"), |
|
"flux_blue_30": datasets.Value("float64"), |
|
"flux_blue_31": datasets.Value("float64"), |
|
"flux_blue_32": datasets.Value("float64"), |
|
"flux_blue_33": datasets.Value("float64"), |
|
"flux_blue_34": datasets.Value("float64"), |
|
"flux_blue_35": datasets.Value("float64"), |
|
"flux_blue_36": datasets.Value("float64"), |
|
"flux_blue_37": datasets.Value("float64"), |
|
"flux_blue_38": datasets.Value("float64"), |
|
"flux_blue_39": datasets.Value("float64"), |
|
"flux_blue_40": datasets.Value("float64"), |
|
"flux_blue_41": datasets.Value("float64"), |
|
"flux_blue_42": datasets.Value("float64"), |
|
"flux_blue_43": datasets.Value("float64"), |
|
"flux_red_0": datasets.Value("float64"), |
|
"flux_red_1": datasets.Value("float64"), |
|
"flux_red_2": datasets.Value("float64"), |
|
"flux_red_3": datasets.Value("float64"), |
|
"flux_red_4": datasets.Value("float64"), |
|
"flux_red_5": datasets.Value("float64"), |
|
"flux_red_6": datasets.Value("float64"), |
|
"flux_red_7": datasets.Value("float64"), |
|
"flux_red_8": datasets.Value("float64"), |
|
"flux_red_9": datasets.Value("float64"), |
|
"flux_red_10": datasets.Value("float64"), |
|
"flux_red_11": datasets.Value("float64"), |
|
"flux_red_12": datasets.Value("float64"), |
|
"flux_red_13": datasets.Value("float64"), |
|
"flux_red_14": datasets.Value("float64"), |
|
"flux_red_15": datasets.Value("float64"), |
|
"flux_red_16": datasets.Value("float64"), |
|
"flux_red_17": datasets.Value("float64"), |
|
"flux_red_18": datasets.Value("float64"), |
|
"flux_red_19": datasets.Value("float64"), |
|
"flux_red_20": datasets.Value("float64"), |
|
"flux_red_21": datasets.Value("float64"), |
|
"flux_red_22": datasets.Value("float64"), |
|
"flux_red_23": datasets.Value("float64"), |
|
"flux_red_24": datasets.Value("float64"), |
|
"flux_red_25": datasets.Value("float64"), |
|
"flux_red_26": datasets.Value("float64"), |
|
"flux_red_27": datasets.Value("float64"), |
|
"flux_red_28": datasets.Value("float64"), |
|
"flux_red_29": datasets.Value("float64"), |
|
"flux_red_30": datasets.Value("float64"), |
|
"flux_red_31": datasets.Value("float64"), |
|
"flux_red_32": datasets.Value("float64"), |
|
"flux_red_33": datasets.Value("float64"), |
|
"flux_red_34": datasets.Value("float64"), |
|
"flux_red_35": datasets.Value("float64"), |
|
"flux_red_36": datasets.Value("float64"), |
|
"flux_red_37": datasets.Value("float64"), |
|
"flux_red_38": datasets.Value("float64"), |
|
"flux_red_39": datasets.Value("float64"), |
|
"flux_red_40": datasets.Value("float64"), |
|
"flux_red_41": datasets.Value("float64"), |
|
"flux_red_42": datasets.Value("float64"), |
|
"flux_red_43": datasets.Value("float64"), |
|
"flux_red_44": datasets.Value("float64"), |
|
"flux_red_45": datasets.Value("float64"), |
|
"flux_red_46": datasets.Value("float64"), |
|
"flux_red_47": datasets.Value("float64"), |
|
"flux_red_48": datasets.Value("float64"), |
|
"lrs_class": datasets.ClassLabel(num_lrs_classes=2, names=("no", "yes")) |
|
}, |
|
"lrs_1": { |
|
"right_ascension": datasets.Value("float64"), |
|
"declination": datasets.Value("float64"), |
|
"scale_factor": datasets.Value("float64"), |
|
"blue_base_1": datasets.Value("float64"), |
|
"blue_base_2": datasets.Value("float64"), |
|
"red_base_1": datasets.Value("float64"), |
|
"red_base_2": datasets.Value("float64"), |
|
"flux_blue_0": datasets.Value("float64"), |
|
"flux_blue_1": datasets.Value("float64"), |
|
"flux_blue_2": datasets.Value("float64"), |
|
"flux_blue_3": datasets.Value("float64"), |
|
"flux_blue_4": datasets.Value("float64"), |
|
"flux_blue_5": datasets.Value("float64"), |
|
"flux_blue_6": datasets.Value("float64"), |
|
"flux_blue_7": datasets.Value("float64"), |
|
"flux_blue_8": datasets.Value("float64"), |
|
"flux_blue_9": datasets.Value("float64"), |
|
"flux_blue_10": datasets.Value("float64"), |
|
"flux_blue_11": datasets.Value("float64"), |
|
"flux_blue_12": datasets.Value("float64"), |
|
"flux_blue_13": datasets.Value("float64"), |
|
"flux_blue_14": datasets.Value("float64"), |
|
"flux_blue_15": datasets.Value("float64"), |
|
"flux_blue_16": datasets.Value("float64"), |
|
"flux_blue_17": datasets.Value("float64"), |
|
"flux_blue_18": datasets.Value("float64"), |
|
"flux_blue_19": datasets.Value("float64"), |
|
"flux_blue_20": datasets.Value("float64"), |
|
"flux_blue_21": datasets.Value("float64"), |
|
"flux_blue_22": datasets.Value("float64"), |
|
"flux_blue_23": datasets.Value("float64"), |
|
"flux_blue_24": datasets.Value("float64"), |
|
"flux_blue_25": datasets.Value("float64"), |
|
"flux_blue_26": datasets.Value("float64"), |
|
"flux_blue_27": datasets.Value("float64"), |
|
"flux_blue_28": datasets.Value("float64"), |
|
"flux_blue_29": datasets.Value("float64"), |
|
"flux_blue_30": datasets.Value("float64"), |
|
"flux_blue_31": datasets.Value("float64"), |
|
"flux_blue_32": datasets.Value("float64"), |
|
"flux_blue_33": datasets.Value("float64"), |
|
"flux_blue_34": datasets.Value("float64"), |
|
"flux_blue_35": datasets.Value("float64"), |
|
"flux_blue_36": datasets.Value("float64"), |
|
"flux_blue_37": datasets.Value("float64"), |
|
"flux_blue_38": datasets.Value("float64"), |
|
"flux_blue_39": datasets.Value("float64"), |
|
"flux_blue_40": datasets.Value("float64"), |
|
"flux_blue_41": datasets.Value("float64"), |
|
"flux_blue_42": datasets.Value("float64"), |
|
"flux_blue_43": datasets.Value("float64"), |
|
"flux_red_0": datasets.Value("float64"), |
|
"flux_red_1": datasets.Value("float64"), |
|
"flux_red_2": datasets.Value("float64"), |
|
"flux_red_3": datasets.Value("float64"), |
|
"flux_red_4": datasets.Value("float64"), |
|
"flux_red_5": datasets.Value("float64"), |
|
"flux_red_6": datasets.Value("float64"), |
|
"flux_red_7": datasets.Value("float64"), |
|
"flux_red_8": datasets.Value("float64"), |
|
"flux_red_9": datasets.Value("float64"), |
|
"flux_red_10": datasets.Value("float64"), |
|
"flux_red_11": datasets.Value("float64"), |
|
"flux_red_12": datasets.Value("float64"), |
|
"flux_red_13": datasets.Value("float64"), |
|
"flux_red_14": datasets.Value("float64"), |
|
"flux_red_15": datasets.Value("float64"), |
|
"flux_red_16": datasets.Value("float64"), |
|
"flux_red_17": datasets.Value("float64"), |
|
"flux_red_18": datasets.Value("float64"), |
|
"flux_red_19": datasets.Value("float64"), |
|
"flux_red_20": datasets.Value("float64"), |
|
"flux_red_21": datasets.Value("float64"), |
|
"flux_red_22": datasets.Value("float64"), |
|
"flux_red_23": datasets.Value("float64"), |
|
"flux_red_24": datasets.Value("float64"), |
|
"flux_red_25": datasets.Value("float64"), |
|
"flux_red_26": datasets.Value("float64"), |
|
"flux_red_27": datasets.Value("float64"), |
|
"flux_red_28": datasets.Value("float64"), |
|
"flux_red_29": datasets.Value("float64"), |
|
"flux_red_30": datasets.Value("float64"), |
|
"flux_red_31": datasets.Value("float64"), |
|
"flux_red_32": datasets.Value("float64"), |
|
"flux_red_33": datasets.Value("float64"), |
|
"flux_red_34": datasets.Value("float64"), |
|
"flux_red_35": datasets.Value("float64"), |
|
"flux_red_36": datasets.Value("float64"), |
|
"flux_red_37": datasets.Value("float64"), |
|
"flux_red_38": datasets.Value("float64"), |
|
"flux_red_39": datasets.Value("float64"), |
|
"flux_red_40": datasets.Value("float64"), |
|
"flux_red_41": datasets.Value("float64"), |
|
"flux_red_42": datasets.Value("float64"), |
|
"flux_red_43": datasets.Value("float64"), |
|
"flux_red_44": datasets.Value("float64"), |
|
"flux_red_45": datasets.Value("float64"), |
|
"flux_red_46": datasets.Value("float64"), |
|
"flux_red_47": datasets.Value("float64"), |
|
"flux_red_48": datasets.Value("float64"), |
|
"lrs_class": datasets.ClassLabel(num_lrs_classes=2, names=("no", "yes")) |
|
}, |
|
"lrs_2": { |
|
"right_ascension": datasets.Value("float64"), |
|
"declination": datasets.Value("float64"), |
|
"scale_factor": datasets.Value("float64"), |
|
"blue_base_1": datasets.Value("float64"), |
|
"blue_base_2": datasets.Value("float64"), |
|
"red_base_1": datasets.Value("float64"), |
|
"red_base_2": datasets.Value("float64"), |
|
"flux_blue_0": datasets.Value("float64"), |
|
"flux_blue_1": datasets.Value("float64"), |
|
"flux_blue_2": datasets.Value("float64"), |
|
"flux_blue_3": datasets.Value("float64"), |
|
"flux_blue_4": datasets.Value("float64"), |
|
"flux_blue_5": datasets.Value("float64"), |
|
"flux_blue_6": datasets.Value("float64"), |
|
"flux_blue_7": datasets.Value("float64"), |
|
"flux_blue_8": datasets.Value("float64"), |
|
"flux_blue_9": datasets.Value("float64"), |
|
"flux_blue_10": datasets.Value("float64"), |
|
"flux_blue_11": datasets.Value("float64"), |
|
"flux_blue_12": datasets.Value("float64"), |
|
"flux_blue_13": datasets.Value("float64"), |
|
"flux_blue_14": datasets.Value("float64"), |
|
"flux_blue_15": datasets.Value("float64"), |
|
"flux_blue_16": datasets.Value("float64"), |
|
"flux_blue_17": datasets.Value("float64"), |
|
"flux_blue_18": datasets.Value("float64"), |
|
"flux_blue_19": datasets.Value("float64"), |
|
"flux_blue_20": datasets.Value("float64"), |
|
"flux_blue_21": datasets.Value("float64"), |
|
"flux_blue_22": datasets.Value("float64"), |
|
"flux_blue_23": datasets.Value("float64"), |
|
"flux_blue_24": datasets.Value("float64"), |
|
"flux_blue_25": datasets.Value("float64"), |
|
"flux_blue_26": datasets.Value("float64"), |
|
"flux_blue_27": datasets.Value("float64"), |
|
"flux_blue_28": datasets.Value("float64"), |
|
"flux_blue_29": datasets.Value("float64"), |
|
"flux_blue_30": datasets.Value("float64"), |
|
"flux_blue_31": datasets.Value("float64"), |
|
"flux_blue_32": datasets.Value("float64"), |
|
"flux_blue_33": datasets.Value("float64"), |
|
"flux_blue_34": datasets.Value("float64"), |
|
"flux_blue_35": datasets.Value("float64"), |
|
"flux_blue_36": datasets.Value("float64"), |
|
"flux_blue_37": datasets.Value("float64"), |
|
"flux_blue_38": datasets.Value("float64"), |
|
"flux_blue_39": datasets.Value("float64"), |
|
"flux_blue_40": datasets.Value("float64"), |
|
"flux_blue_41": datasets.Value("float64"), |
|
"flux_blue_42": datasets.Value("float64"), |
|
"flux_blue_43": datasets.Value("float64"), |
|
"flux_red_0": datasets.Value("float64"), |
|
"flux_red_1": datasets.Value("float64"), |
|
"flux_red_2": datasets.Value("float64"), |
|
"flux_red_3": datasets.Value("float64"), |
|
"flux_red_4": datasets.Value("float64"), |
|
"flux_red_5": datasets.Value("float64"), |
|
"flux_red_6": datasets.Value("float64"), |
|
"flux_red_7": datasets.Value("float64"), |
|
"flux_red_8": datasets.Value("float64"), |
|
"flux_red_9": datasets.Value("float64"), |
|
"flux_red_10": datasets.Value("float64"), |
|
"flux_red_11": datasets.Value("float64"), |
|
"flux_red_12": datasets.Value("float64"), |
|
"flux_red_13": datasets.Value("float64"), |
|
"flux_red_14": datasets.Value("float64"), |
|
"flux_red_15": datasets.Value("float64"), |
|
"flux_red_16": datasets.Value("float64"), |
|
"flux_red_17": datasets.Value("float64"), |
|
"flux_red_18": datasets.Value("float64"), |
|
"flux_red_19": datasets.Value("float64"), |
|
"flux_red_20": datasets.Value("float64"), |
|
"flux_red_21": datasets.Value("float64"), |
|
"flux_red_22": datasets.Value("float64"), |
|
"flux_red_23": datasets.Value("float64"), |
|
"flux_red_24": datasets.Value("float64"), |
|
"flux_red_25": datasets.Value("float64"), |
|
"flux_red_26": datasets.Value("float64"), |
|
"flux_red_27": datasets.Value("float64"), |
|
"flux_red_28": datasets.Value("float64"), |
|
"flux_red_29": datasets.Value("float64"), |
|
"flux_red_30": datasets.Value("float64"), |
|
"flux_red_31": datasets.Value("float64"), |
|
"flux_red_32": datasets.Value("float64"), |
|
"flux_red_33": datasets.Value("float64"), |
|
"flux_red_34": datasets.Value("float64"), |
|
"flux_red_35": datasets.Value("float64"), |
|
"flux_red_36": datasets.Value("float64"), |
|
"flux_red_37": datasets.Value("float64"), |
|
"flux_red_38": datasets.Value("float64"), |
|
"flux_red_39": datasets.Value("float64"), |
|
"flux_red_40": datasets.Value("float64"), |
|
"flux_red_41": datasets.Value("float64"), |
|
"flux_red_42": datasets.Value("float64"), |
|
"flux_red_43": datasets.Value("float64"), |
|
"flux_red_44": datasets.Value("float64"), |
|
"flux_red_45": datasets.Value("float64"), |
|
"flux_red_46": datasets.Value("float64"), |
|
"flux_red_47": datasets.Value("float64"), |
|
"flux_red_48": datasets.Value("float64"), |
|
"lrs_class": datasets.ClassLabel(num_lrs_classes=2, names=("no", "yes")) |
|
}, |
|
"lrs_3": { |
|
"right_ascension": datasets.Value("float64"), |
|
"declination": datasets.Value("float64"), |
|
"scale_factor": datasets.Value("float64"), |
|
"blue_base_1": datasets.Value("float64"), |
|
"blue_base_2": datasets.Value("float64"), |
|
"red_base_1": datasets.Value("float64"), |
|
"red_base_2": datasets.Value("float64"), |
|
"flux_blue_0": datasets.Value("float64"), |
|
"flux_blue_1": datasets.Value("float64"), |
|
"flux_blue_2": datasets.Value("float64"), |
|
"flux_blue_3": datasets.Value("float64"), |
|
"flux_blue_4": datasets.Value("float64"), |
|
"flux_blue_5": datasets.Value("float64"), |
|
"flux_blue_6": datasets.Value("float64"), |
|
"flux_blue_7": datasets.Value("float64"), |
|
"flux_blue_8": datasets.Value("float64"), |
|
"flux_blue_9": datasets.Value("float64"), |
|
"flux_blue_10": datasets.Value("float64"), |
|
"flux_blue_11": datasets.Value("float64"), |
|
"flux_blue_12": datasets.Value("float64"), |
|
"flux_blue_13": datasets.Value("float64"), |
|
"flux_blue_14": datasets.Value("float64"), |
|
"flux_blue_15": datasets.Value("float64"), |
|
"flux_blue_16": datasets.Value("float64"), |
|
"flux_blue_17": datasets.Value("float64"), |
|
"flux_blue_18": datasets.Value("float64"), |
|
"flux_blue_19": datasets.Value("float64"), |
|
"flux_blue_20": datasets.Value("float64"), |
|
"flux_blue_21": datasets.Value("float64"), |
|
"flux_blue_22": datasets.Value("float64"), |
|
"flux_blue_23": datasets.Value("float64"), |
|
"flux_blue_24": datasets.Value("float64"), |
|
"flux_blue_25": datasets.Value("float64"), |
|
"flux_blue_26": datasets.Value("float64"), |
|
"flux_blue_27": datasets.Value("float64"), |
|
"flux_blue_28": datasets.Value("float64"), |
|
"flux_blue_29": datasets.Value("float64"), |
|
"flux_blue_30": datasets.Value("float64"), |
|
"flux_blue_31": datasets.Value("float64"), |
|
"flux_blue_32": datasets.Value("float64"), |
|
"flux_blue_33": datasets.Value("float64"), |
|
"flux_blue_34": datasets.Value("float64"), |
|
"flux_blue_35": datasets.Value("float64"), |
|
"flux_blue_36": datasets.Value("float64"), |
|
"flux_blue_37": datasets.Value("float64"), |
|
"flux_blue_38": datasets.Value("float64"), |
|
"flux_blue_39": datasets.Value("float64"), |
|
"flux_blue_40": datasets.Value("float64"), |
|
"flux_blue_41": datasets.Value("float64"), |
|
"flux_blue_42": datasets.Value("float64"), |
|
"flux_blue_43": datasets.Value("float64"), |
|
"flux_red_0": datasets.Value("float64"), |
|
"flux_red_1": datasets.Value("float64"), |
|
"flux_red_2": datasets.Value("float64"), |
|
"flux_red_3": datasets.Value("float64"), |
|
"flux_red_4": datasets.Value("float64"), |
|
"flux_red_5": datasets.Value("float64"), |
|
"flux_red_6": datasets.Value("float64"), |
|
"flux_red_7": datasets.Value("float64"), |
|
"flux_red_8": datasets.Value("float64"), |
|
"flux_red_9": datasets.Value("float64"), |
|
"flux_red_10": datasets.Value("float64"), |
|
"flux_red_11": datasets.Value("float64"), |
|
"flux_red_12": datasets.Value("float64"), |
|
"flux_red_13": datasets.Value("float64"), |
|
"flux_red_14": datasets.Value("float64"), |
|
"flux_red_15": datasets.Value("float64"), |
|
"flux_red_16": datasets.Value("float64"), |
|
"flux_red_17": datasets.Value("float64"), |
|
"flux_red_18": datasets.Value("float64"), |
|
"flux_red_19": datasets.Value("float64"), |
|
"flux_red_20": datasets.Value("float64"), |
|
"flux_red_21": datasets.Value("float64"), |
|
"flux_red_22": datasets.Value("float64"), |
|
"flux_red_23": datasets.Value("float64"), |
|
"flux_red_24": datasets.Value("float64"), |
|
"flux_red_25": datasets.Value("float64"), |
|
"flux_red_26": datasets.Value("float64"), |
|
"flux_red_27": datasets.Value("float64"), |
|
"flux_red_28": datasets.Value("float64"), |
|
"flux_red_29": datasets.Value("float64"), |
|
"flux_red_30": datasets.Value("float64"), |
|
"flux_red_31": datasets.Value("float64"), |
|
"flux_red_32": datasets.Value("float64"), |
|
"flux_red_33": datasets.Value("float64"), |
|
"flux_red_34": datasets.Value("float64"), |
|
"flux_red_35": datasets.Value("float64"), |
|
"flux_red_36": datasets.Value("float64"), |
|
"flux_red_37": datasets.Value("float64"), |
|
"flux_red_38": datasets.Value("float64"), |
|
"flux_red_39": datasets.Value("float64"), |
|
"flux_red_40": datasets.Value("float64"), |
|
"flux_red_41": datasets.Value("float64"), |
|
"flux_red_42": datasets.Value("float64"), |
|
"flux_red_43": datasets.Value("float64"), |
|
"flux_red_44": datasets.Value("float64"), |
|
"flux_red_45": datasets.Value("float64"), |
|
"flux_red_46": datasets.Value("float64"), |
|
"flux_red_47": datasets.Value("float64"), |
|
"flux_red_48": datasets.Value("float64"), |
|
"lrs_class": datasets.ClassLabel(num_lrs_classes=2, names=("no", "yes")) |
|
}, |
|
"lrs_4": { |
|
"right_ascension": datasets.Value("float64"), |
|
"declination": datasets.Value("float64"), |
|
"scale_factor": datasets.Value("float64"), |
|
"blue_base_1": datasets.Value("float64"), |
|
"blue_base_2": datasets.Value("float64"), |
|
"red_base_1": datasets.Value("float64"), |
|
"red_base_2": datasets.Value("float64"), |
|
"flux_blue_0": datasets.Value("float64"), |
|
"flux_blue_1": datasets.Value("float64"), |
|
"flux_blue_2": datasets.Value("float64"), |
|
"flux_blue_3": datasets.Value("float64"), |
|
"flux_blue_4": datasets.Value("float64"), |
|
"flux_blue_5": datasets.Value("float64"), |
|
"flux_blue_6": datasets.Value("float64"), |
|
"flux_blue_7": datasets.Value("float64"), |
|
"flux_blue_8": datasets.Value("float64"), |
|
"flux_blue_9": datasets.Value("float64"), |
|
"flux_blue_10": datasets.Value("float64"), |
|
"flux_blue_11": datasets.Value("float64"), |
|
"flux_blue_12": datasets.Value("float64"), |
|
"flux_blue_13": datasets.Value("float64"), |
|
"flux_blue_14": datasets.Value("float64"), |
|
"flux_blue_15": datasets.Value("float64"), |
|
"flux_blue_16": datasets.Value("float64"), |
|
"flux_blue_17": datasets.Value("float64"), |
|
"flux_blue_18": datasets.Value("float64"), |
|
"flux_blue_19": datasets.Value("float64"), |
|
"flux_blue_20": datasets.Value("float64"), |
|
"flux_blue_21": datasets.Value("float64"), |
|
"flux_blue_22": datasets.Value("float64"), |
|
"flux_blue_23": datasets.Value("float64"), |
|
"flux_blue_24": datasets.Value("float64"), |
|
"flux_blue_25": datasets.Value("float64"), |
|
"flux_blue_26": datasets.Value("float64"), |
|
"flux_blue_27": datasets.Value("float64"), |
|
"flux_blue_28": datasets.Value("float64"), |
|
"flux_blue_29": datasets.Value("float64"), |
|
"flux_blue_30": datasets.Value("float64"), |
|
"flux_blue_31": datasets.Value("float64"), |
|
"flux_blue_32": datasets.Value("float64"), |
|
"flux_blue_33": datasets.Value("float64"), |
|
"flux_blue_34": datasets.Value("float64"), |
|
"flux_blue_35": datasets.Value("float64"), |
|
"flux_blue_36": datasets.Value("float64"), |
|
"flux_blue_37": datasets.Value("float64"), |
|
"flux_blue_38": datasets.Value("float64"), |
|
"flux_blue_39": datasets.Value("float64"), |
|
"flux_blue_40": datasets.Value("float64"), |
|
"flux_blue_41": datasets.Value("float64"), |
|
"flux_blue_42": datasets.Value("float64"), |
|
"flux_blue_43": datasets.Value("float64"), |
|
"flux_red_0": datasets.Value("float64"), |
|
"flux_red_1": datasets.Value("float64"), |
|
"flux_red_2": datasets.Value("float64"), |
|
"flux_red_3": datasets.Value("float64"), |
|
"flux_red_4": datasets.Value("float64"), |
|
"flux_red_5": datasets.Value("float64"), |
|
"flux_red_6": datasets.Value("float64"), |
|
"flux_red_7": datasets.Value("float64"), |
|
"flux_red_8": datasets.Value("float64"), |
|
"flux_red_9": datasets.Value("float64"), |
|
"flux_red_10": datasets.Value("float64"), |
|
"flux_red_11": datasets.Value("float64"), |
|
"flux_red_12": datasets.Value("float64"), |
|
"flux_red_13": datasets.Value("float64"), |
|
"flux_red_14": datasets.Value("float64"), |
|
"flux_red_15": datasets.Value("float64"), |
|
"flux_red_16": datasets.Value("float64"), |
|
"flux_red_17": datasets.Value("float64"), |
|
"flux_red_18": datasets.Value("float64"), |
|
"flux_red_19": datasets.Value("float64"), |
|
"flux_red_20": datasets.Value("float64"), |
|
"flux_red_21": datasets.Value("float64"), |
|
"flux_red_22": datasets.Value("float64"), |
|
"flux_red_23": datasets.Value("float64"), |
|
"flux_red_24": datasets.Value("float64"), |
|
"flux_red_25": datasets.Value("float64"), |
|
"flux_red_26": datasets.Value("float64"), |
|
"flux_red_27": datasets.Value("float64"), |
|
"flux_red_28": datasets.Value("float64"), |
|
"flux_red_29": datasets.Value("float64"), |
|
"flux_red_30": datasets.Value("float64"), |
|
"flux_red_31": datasets.Value("float64"), |
|
"flux_red_32": datasets.Value("float64"), |
|
"flux_red_33": datasets.Value("float64"), |
|
"flux_red_34": datasets.Value("float64"), |
|
"flux_red_35": datasets.Value("float64"), |
|
"flux_red_36": datasets.Value("float64"), |
|
"flux_red_37": datasets.Value("float64"), |
|
"flux_red_38": datasets.Value("float64"), |
|
"flux_red_39": datasets.Value("float64"), |
|
"flux_red_40": datasets.Value("float64"), |
|
"flux_red_41": datasets.Value("float64"), |
|
"flux_red_42": datasets.Value("float64"), |
|
"flux_red_43": datasets.Value("float64"), |
|
"flux_red_44": datasets.Value("float64"), |
|
"flux_red_45": datasets.Value("float64"), |
|
"flux_red_46": datasets.Value("float64"), |
|
"flux_red_47": datasets.Value("float64"), |
|
"flux_red_48": datasets.Value("float64"), |
|
"lrs_class": datasets.ClassLabel(num_lrs_classes=2, names=("no", "yes")) |
|
}, |
|
"lrs_5": { |
|
"right_ascension": datasets.Value("float64"), |
|
"declination": datasets.Value("float64"), |
|
"scale_factor": datasets.Value("float64"), |
|
"blue_base_1": datasets.Value("float64"), |
|
"blue_base_2": datasets.Value("float64"), |
|
"red_base_1": datasets.Value("float64"), |
|
"red_base_2": datasets.Value("float64"), |
|
"flux_blue_0": datasets.Value("float64"), |
|
"flux_blue_1": datasets.Value("float64"), |
|
"flux_blue_2": datasets.Value("float64"), |
|
"flux_blue_3": datasets.Value("float64"), |
|
"flux_blue_4": datasets.Value("float64"), |
|
"flux_blue_5": datasets.Value("float64"), |
|
"flux_blue_6": datasets.Value("float64"), |
|
"flux_blue_7": datasets.Value("float64"), |
|
"flux_blue_8": datasets.Value("float64"), |
|
"flux_blue_9": datasets.Value("float64"), |
|
"flux_blue_10": datasets.Value("float64"), |
|
"flux_blue_11": datasets.Value("float64"), |
|
"flux_blue_12": datasets.Value("float64"), |
|
"flux_blue_13": datasets.Value("float64"), |
|
"flux_blue_14": datasets.Value("float64"), |
|
"flux_blue_15": datasets.Value("float64"), |
|
"flux_blue_16": datasets.Value("float64"), |
|
"flux_blue_17": datasets.Value("float64"), |
|
"flux_blue_18": datasets.Value("float64"), |
|
"flux_blue_19": datasets.Value("float64"), |
|
"flux_blue_20": datasets.Value("float64"), |
|
"flux_blue_21": datasets.Value("float64"), |
|
"flux_blue_22": datasets.Value("float64"), |
|
"flux_blue_23": datasets.Value("float64"), |
|
"flux_blue_24": datasets.Value("float64"), |
|
"flux_blue_25": datasets.Value("float64"), |
|
"flux_blue_26": datasets.Value("float64"), |
|
"flux_blue_27": datasets.Value("float64"), |
|
"flux_blue_28": datasets.Value("float64"), |
|
"flux_blue_29": datasets.Value("float64"), |
|
"flux_blue_30": datasets.Value("float64"), |
|
"flux_blue_31": datasets.Value("float64"), |
|
"flux_blue_32": datasets.Value("float64"), |
|
"flux_blue_33": datasets.Value("float64"), |
|
"flux_blue_34": datasets.Value("float64"), |
|
"flux_blue_35": datasets.Value("float64"), |
|
"flux_blue_36": datasets.Value("float64"), |
|
"flux_blue_37": datasets.Value("float64"), |
|
"flux_blue_38": datasets.Value("float64"), |
|
"flux_blue_39": datasets.Value("float64"), |
|
"flux_blue_40": datasets.Value("float64"), |
|
"flux_blue_41": datasets.Value("float64"), |
|
"flux_blue_42": datasets.Value("float64"), |
|
"flux_blue_43": datasets.Value("float64"), |
|
"flux_red_0": datasets.Value("float64"), |
|
"flux_red_1": datasets.Value("float64"), |
|
"flux_red_2": datasets.Value("float64"), |
|
"flux_red_3": datasets.Value("float64"), |
|
"flux_red_4": datasets.Value("float64"), |
|
"flux_red_5": datasets.Value("float64"), |
|
"flux_red_6": datasets.Value("float64"), |
|
"flux_red_7": datasets.Value("float64"), |
|
"flux_red_8": datasets.Value("float64"), |
|
"flux_red_9": datasets.Value("float64"), |
|
"flux_red_10": datasets.Value("float64"), |
|
"flux_red_11": datasets.Value("float64"), |
|
"flux_red_12": datasets.Value("float64"), |
|
"flux_red_13": datasets.Value("float64"), |
|
"flux_red_14": datasets.Value("float64"), |
|
"flux_red_15": datasets.Value("float64"), |
|
"flux_red_16": datasets.Value("float64"), |
|
"flux_red_17": datasets.Value("float64"), |
|
"flux_red_18": datasets.Value("float64"), |
|
"flux_red_19": datasets.Value("float64"), |
|
"flux_red_20": datasets.Value("float64"), |
|
"flux_red_21": datasets.Value("float64"), |
|
"flux_red_22": datasets.Value("float64"), |
|
"flux_red_23": datasets.Value("float64"), |
|
"flux_red_24": datasets.Value("float64"), |
|
"flux_red_25": datasets.Value("float64"), |
|
"flux_red_26": datasets.Value("float64"), |
|
"flux_red_27": datasets.Value("float64"), |
|
"flux_red_28": datasets.Value("float64"), |
|
"flux_red_29": datasets.Value("float64"), |
|
"flux_red_30": datasets.Value("float64"), |
|
"flux_red_31": datasets.Value("float64"), |
|
"flux_red_32": datasets.Value("float64"), |
|
"flux_red_33": datasets.Value("float64"), |
|
"flux_red_34": datasets.Value("float64"), |
|
"flux_red_35": datasets.Value("float64"), |
|
"flux_red_36": datasets.Value("float64"), |
|
"flux_red_37": datasets.Value("float64"), |
|
"flux_red_38": datasets.Value("float64"), |
|
"flux_red_39": datasets.Value("float64"), |
|
"flux_red_40": datasets.Value("float64"), |
|
"flux_red_41": datasets.Value("float64"), |
|
"flux_red_42": datasets.Value("float64"), |
|
"flux_red_43": datasets.Value("float64"), |
|
"flux_red_44": datasets.Value("float64"), |
|
"flux_red_45": datasets.Value("float64"), |
|
"flux_red_46": datasets.Value("float64"), |
|
"flux_red_47": datasets.Value("float64"), |
|
"flux_red_48": datasets.Value("float64"), |
|
"lrs_class": datasets.ClassLabel(num_lrs_classes=2, names=("no", "yes")) |
|
}, |
|
"lrs_6": { |
|
"right_ascension": datasets.Value("float64"), |
|
"declination": datasets.Value("float64"), |
|
"scale_factor": datasets.Value("float64"), |
|
"blue_base_1": datasets.Value("float64"), |
|
"blue_base_2": datasets.Value("float64"), |
|
"red_base_1": datasets.Value("float64"), |
|
"red_base_2": datasets.Value("float64"), |
|
"flux_blue_0": datasets.Value("float64"), |
|
"flux_blue_1": datasets.Value("float64"), |
|
"flux_blue_2": datasets.Value("float64"), |
|
"flux_blue_3": datasets.Value("float64"), |
|
"flux_blue_4": datasets.Value("float64"), |
|
"flux_blue_5": datasets.Value("float64"), |
|
"flux_blue_6": datasets.Value("float64"), |
|
"flux_blue_7": datasets.Value("float64"), |
|
"flux_blue_8": datasets.Value("float64"), |
|
"flux_blue_9": datasets.Value("float64"), |
|
"flux_blue_10": datasets.Value("float64"), |
|
"flux_blue_11": datasets.Value("float64"), |
|
"flux_blue_12": datasets.Value("float64"), |
|
"flux_blue_13": datasets.Value("float64"), |
|
"flux_blue_14": datasets.Value("float64"), |
|
"flux_blue_15": datasets.Value("float64"), |
|
"flux_blue_16": datasets.Value("float64"), |
|
"flux_blue_17": datasets.Value("float64"), |
|
"flux_blue_18": datasets.Value("float64"), |
|
"flux_blue_19": datasets.Value("float64"), |
|
"flux_blue_20": datasets.Value("float64"), |
|
"flux_blue_21": datasets.Value("float64"), |
|
"flux_blue_22": datasets.Value("float64"), |
|
"flux_blue_23": datasets.Value("float64"), |
|
"flux_blue_24": datasets.Value("float64"), |
|
"flux_blue_25": datasets.Value("float64"), |
|
"flux_blue_26": datasets.Value("float64"), |
|
"flux_blue_27": datasets.Value("float64"), |
|
"flux_blue_28": datasets.Value("float64"), |
|
"flux_blue_29": datasets.Value("float64"), |
|
"flux_blue_30": datasets.Value("float64"), |
|
"flux_blue_31": datasets.Value("float64"), |
|
"flux_blue_32": datasets.Value("float64"), |
|
"flux_blue_33": datasets.Value("float64"), |
|
"flux_blue_34": datasets.Value("float64"), |
|
"flux_blue_35": datasets.Value("float64"), |
|
"flux_blue_36": datasets.Value("float64"), |
|
"flux_blue_37": datasets.Value("float64"), |
|
"flux_blue_38": datasets.Value("float64"), |
|
"flux_blue_39": datasets.Value("float64"), |
|
"flux_blue_40": datasets.Value("float64"), |
|
"flux_blue_41": datasets.Value("float64"), |
|
"flux_blue_42": datasets.Value("float64"), |
|
"flux_blue_43": datasets.Value("float64"), |
|
"flux_red_0": datasets.Value("float64"), |
|
"flux_red_1": datasets.Value("float64"), |
|
"flux_red_2": datasets.Value("float64"), |
|
"flux_red_3": datasets.Value("float64"), |
|
"flux_red_4": datasets.Value("float64"), |
|
"flux_red_5": datasets.Value("float64"), |
|
"flux_red_6": datasets.Value("float64"), |
|
"flux_red_7": datasets.Value("float64"), |
|
"flux_red_8": datasets.Value("float64"), |
|
"flux_red_9": datasets.Value("float64"), |
|
"flux_red_10": datasets.Value("float64"), |
|
"flux_red_11": datasets.Value("float64"), |
|
"flux_red_12": datasets.Value("float64"), |
|
"flux_red_13": datasets.Value("float64"), |
|
"flux_red_14": datasets.Value("float64"), |
|
"flux_red_15": datasets.Value("float64"), |
|
"flux_red_16": datasets.Value("float64"), |
|
"flux_red_17": datasets.Value("float64"), |
|
"flux_red_18": datasets.Value("float64"), |
|
"flux_red_19": datasets.Value("float64"), |
|
"flux_red_20": datasets.Value("float64"), |
|
"flux_red_21": datasets.Value("float64"), |
|
"flux_red_22": datasets.Value("float64"), |
|
"flux_red_23": datasets.Value("float64"), |
|
"flux_red_24": datasets.Value("float64"), |
|
"flux_red_25": datasets.Value("float64"), |
|
"flux_red_26": datasets.Value("float64"), |
|
"flux_red_27": datasets.Value("float64"), |
|
"flux_red_28": datasets.Value("float64"), |
|
"flux_red_29": datasets.Value("float64"), |
|
"flux_red_30": datasets.Value("float64"), |
|
"flux_red_31": datasets.Value("float64"), |
|
"flux_red_32": datasets.Value("float64"), |
|
"flux_red_33": datasets.Value("float64"), |
|
"flux_red_34": datasets.Value("float64"), |
|
"flux_red_35": datasets.Value("float64"), |
|
"flux_red_36": datasets.Value("float64"), |
|
"flux_red_37": datasets.Value("float64"), |
|
"flux_red_38": datasets.Value("float64"), |
|
"flux_red_39": datasets.Value("float64"), |
|
"flux_red_40": datasets.Value("float64"), |
|
"flux_red_41": datasets.Value("float64"), |
|
"flux_red_42": datasets.Value("float64"), |
|
"flux_red_43": datasets.Value("float64"), |
|
"flux_red_44": datasets.Value("float64"), |
|
"flux_red_45": datasets.Value("float64"), |
|
"flux_red_46": datasets.Value("float64"), |
|
"flux_red_47": datasets.Value("float64"), |
|
"flux_red_48": datasets.Value("float64"), |
|
"lrs_class": datasets.ClassLabel(num_lrs_classes=2, names=("no", "yes")) |
|
}, |
|
"lrs_7": { |
|
"right_ascension": datasets.Value("float64"), |
|
"declination": datasets.Value("float64"), |
|
"scale_factor": datasets.Value("float64"), |
|
"blue_base_1": datasets.Value("float64"), |
|
"blue_base_2": datasets.Value("float64"), |
|
"red_base_1": datasets.Value("float64"), |
|
"red_base_2": datasets.Value("float64"), |
|
"flux_blue_0": datasets.Value("float64"), |
|
"flux_blue_1": datasets.Value("float64"), |
|
"flux_blue_2": datasets.Value("float64"), |
|
"flux_blue_3": datasets.Value("float64"), |
|
"flux_blue_4": datasets.Value("float64"), |
|
"flux_blue_5": datasets.Value("float64"), |
|
"flux_blue_6": datasets.Value("float64"), |
|
"flux_blue_7": datasets.Value("float64"), |
|
"flux_blue_8": datasets.Value("float64"), |
|
"flux_blue_9": datasets.Value("float64"), |
|
"flux_blue_10": datasets.Value("float64"), |
|
"flux_blue_11": datasets.Value("float64"), |
|
"flux_blue_12": datasets.Value("float64"), |
|
"flux_blue_13": datasets.Value("float64"), |
|
"flux_blue_14": datasets.Value("float64"), |
|
"flux_blue_15": datasets.Value("float64"), |
|
"flux_blue_16": datasets.Value("float64"), |
|
"flux_blue_17": datasets.Value("float64"), |
|
"flux_blue_18": datasets.Value("float64"), |
|
"flux_blue_19": datasets.Value("float64"), |
|
"flux_blue_20": datasets.Value("float64"), |
|
"flux_blue_21": datasets.Value("float64"), |
|
"flux_blue_22": datasets.Value("float64"), |
|
"flux_blue_23": datasets.Value("float64"), |
|
"flux_blue_24": datasets.Value("float64"), |
|
"flux_blue_25": datasets.Value("float64"), |
|
"flux_blue_26": datasets.Value("float64"), |
|
"flux_blue_27": datasets.Value("float64"), |
|
"flux_blue_28": datasets.Value("float64"), |
|
"flux_blue_29": datasets.Value("float64"), |
|
"flux_blue_30": datasets.Value("float64"), |
|
"flux_blue_31": datasets.Value("float64"), |
|
"flux_blue_32": datasets.Value("float64"), |
|
"flux_blue_33": datasets.Value("float64"), |
|
"flux_blue_34": datasets.Value("float64"), |
|
"flux_blue_35": datasets.Value("float64"), |
|
"flux_blue_36": datasets.Value("float64"), |
|
"flux_blue_37": datasets.Value("float64"), |
|
"flux_blue_38": datasets.Value("float64"), |
|
"flux_blue_39": datasets.Value("float64"), |
|
"flux_blue_40": datasets.Value("float64"), |
|
"flux_blue_41": datasets.Value("float64"), |
|
"flux_blue_42": datasets.Value("float64"), |
|
"flux_blue_43": datasets.Value("float64"), |
|
"flux_red_0": datasets.Value("float64"), |
|
"flux_red_1": datasets.Value("float64"), |
|
"flux_red_2": datasets.Value("float64"), |
|
"flux_red_3": datasets.Value("float64"), |
|
"flux_red_4": datasets.Value("float64"), |
|
"flux_red_5": datasets.Value("float64"), |
|
"flux_red_6": datasets.Value("float64"), |
|
"flux_red_7": datasets.Value("float64"), |
|
"flux_red_8": datasets.Value("float64"), |
|
"flux_red_9": datasets.Value("float64"), |
|
"flux_red_10": datasets.Value("float64"), |
|
"flux_red_11": datasets.Value("float64"), |
|
"flux_red_12": datasets.Value("float64"), |
|
"flux_red_13": datasets.Value("float64"), |
|
"flux_red_14": datasets.Value("float64"), |
|
"flux_red_15": datasets.Value("float64"), |
|
"flux_red_16": datasets.Value("float64"), |
|
"flux_red_17": datasets.Value("float64"), |
|
"flux_red_18": datasets.Value("float64"), |
|
"flux_red_19": datasets.Value("float64"), |
|
"flux_red_20": datasets.Value("float64"), |
|
"flux_red_21": datasets.Value("float64"), |
|
"flux_red_22": datasets.Value("float64"), |
|
"flux_red_23": datasets.Value("float64"), |
|
"flux_red_24": datasets.Value("float64"), |
|
"flux_red_25": datasets.Value("float64"), |
|
"flux_red_26": datasets.Value("float64"), |
|
"flux_red_27": datasets.Value("float64"), |
|
"flux_red_28": datasets.Value("float64"), |
|
"flux_red_29": datasets.Value("float64"), |
|
"flux_red_30": datasets.Value("float64"), |
|
"flux_red_31": datasets.Value("float64"), |
|
"flux_red_32": datasets.Value("float64"), |
|
"flux_red_33": datasets.Value("float64"), |
|
"flux_red_34": datasets.Value("float64"), |
|
"flux_red_35": datasets.Value("float64"), |
|
"flux_red_36": datasets.Value("float64"), |
|
"flux_red_37": datasets.Value("float64"), |
|
"flux_red_38": datasets.Value("float64"), |
|
"flux_red_39": datasets.Value("float64"), |
|
"flux_red_40": datasets.Value("float64"), |
|
"flux_red_41": datasets.Value("float64"), |
|
"flux_red_42": datasets.Value("float64"), |
|
"flux_red_43": datasets.Value("float64"), |
|
"flux_red_44": datasets.Value("float64"), |
|
"flux_red_45": datasets.Value("float64"), |
|
"flux_red_46": datasets.Value("float64"), |
|
"flux_red_47": datasets.Value("float64"), |
|
"flux_red_48": datasets.Value("float64"), |
|
"lrs_class": datasets.ClassLabel(num_lrs_classes=2, names=("no", "yes")) |
|
}, |
|
"lrs_8": { |
|
"right_ascension": datasets.Value("float64"), |
|
"declination": datasets.Value("float64"), |
|
"scale_factor": datasets.Value("float64"), |
|
"blue_base_1": datasets.Value("float64"), |
|
"blue_base_2": datasets.Value("float64"), |
|
"red_base_1": datasets.Value("float64"), |
|
"red_base_2": datasets.Value("float64"), |
|
"flux_blue_0": datasets.Value("float64"), |
|
"flux_blue_1": datasets.Value("float64"), |
|
"flux_blue_2": datasets.Value("float64"), |
|
"flux_blue_3": datasets.Value("float64"), |
|
"flux_blue_4": datasets.Value("float64"), |
|
"flux_blue_5": datasets.Value("float64"), |
|
"flux_blue_6": datasets.Value("float64"), |
|
"flux_blue_7": datasets.Value("float64"), |
|
"flux_blue_8": datasets.Value("float64"), |
|
"flux_blue_9": datasets.Value("float64"), |
|
"flux_blue_10": datasets.Value("float64"), |
|
"flux_blue_11": datasets.Value("float64"), |
|
"flux_blue_12": datasets.Value("float64"), |
|
"flux_blue_13": datasets.Value("float64"), |
|
"flux_blue_14": datasets.Value("float64"), |
|
"flux_blue_15": datasets.Value("float64"), |
|
"flux_blue_16": datasets.Value("float64"), |
|
"flux_blue_17": datasets.Value("float64"), |
|
"flux_blue_18": datasets.Value("float64"), |
|
"flux_blue_19": datasets.Value("float64"), |
|
"flux_blue_20": datasets.Value("float64"), |
|
"flux_blue_21": datasets.Value("float64"), |
|
"flux_blue_22": datasets.Value("float64"), |
|
"flux_blue_23": datasets.Value("float64"), |
|
"flux_blue_24": datasets.Value("float64"), |
|
"flux_blue_25": datasets.Value("float64"), |
|
"flux_blue_26": datasets.Value("float64"), |
|
"flux_blue_27": datasets.Value("float64"), |
|
"flux_blue_28": datasets.Value("float64"), |
|
"flux_blue_29": datasets.Value("float64"), |
|
"flux_blue_30": datasets.Value("float64"), |
|
"flux_blue_31": datasets.Value("float64"), |
|
"flux_blue_32": datasets.Value("float64"), |
|
"flux_blue_33": datasets.Value("float64"), |
|
"flux_blue_34": datasets.Value("float64"), |
|
"flux_blue_35": datasets.Value("float64"), |
|
"flux_blue_36": datasets.Value("float64"), |
|
"flux_blue_37": datasets.Value("float64"), |
|
"flux_blue_38": datasets.Value("float64"), |
|
"flux_blue_39": datasets.Value("float64"), |
|
"flux_blue_40": datasets.Value("float64"), |
|
"flux_blue_41": datasets.Value("float64"), |
|
"flux_blue_42": datasets.Value("float64"), |
|
"flux_blue_43": datasets.Value("float64"), |
|
"flux_red_0": datasets.Value("float64"), |
|
"flux_red_1": datasets.Value("float64"), |
|
"flux_red_2": datasets.Value("float64"), |
|
"flux_red_3": datasets.Value("float64"), |
|
"flux_red_4": datasets.Value("float64"), |
|
"flux_red_5": datasets.Value("float64"), |
|
"flux_red_6": datasets.Value("float64"), |
|
"flux_red_7": datasets.Value("float64"), |
|
"flux_red_8": datasets.Value("float64"), |
|
"flux_red_9": datasets.Value("float64"), |
|
"flux_red_10": datasets.Value("float64"), |
|
"flux_red_11": datasets.Value("float64"), |
|
"flux_red_12": datasets.Value("float64"), |
|
"flux_red_13": datasets.Value("float64"), |
|
"flux_red_14": datasets.Value("float64"), |
|
"flux_red_15": datasets.Value("float64"), |
|
"flux_red_16": datasets.Value("float64"), |
|
"flux_red_17": datasets.Value("float64"), |
|
"flux_red_18": datasets.Value("float64"), |
|
"flux_red_19": datasets.Value("float64"), |
|
"flux_red_20": datasets.Value("float64"), |
|
"flux_red_21": datasets.Value("float64"), |
|
"flux_red_22": datasets.Value("float64"), |
|
"flux_red_23": datasets.Value("float64"), |
|
"flux_red_24": datasets.Value("float64"), |
|
"flux_red_25": datasets.Value("float64"), |
|
"flux_red_26": datasets.Value("float64"), |
|
"flux_red_27": datasets.Value("float64"), |
|
"flux_red_28": datasets.Value("float64"), |
|
"flux_red_29": datasets.Value("float64"), |
|
"flux_red_30": datasets.Value("float64"), |
|
"flux_red_31": datasets.Value("float64"), |
|
"flux_red_32": datasets.Value("float64"), |
|
"flux_red_33": datasets.Value("float64"), |
|
"flux_red_34": datasets.Value("float64"), |
|
"flux_red_35": datasets.Value("float64"), |
|
"flux_red_36": datasets.Value("float64"), |
|
"flux_red_37": datasets.Value("float64"), |
|
"flux_red_38": datasets.Value("float64"), |
|
"flux_red_39": datasets.Value("float64"), |
|
"flux_red_40": datasets.Value("float64"), |
|
"flux_red_41": datasets.Value("float64"), |
|
"flux_red_42": datasets.Value("float64"), |
|
"flux_red_43": datasets.Value("float64"), |
|
"flux_red_44": datasets.Value("float64"), |
|
"flux_red_45": datasets.Value("float64"), |
|
"flux_red_46": datasets.Value("float64"), |
|
"flux_red_47": datasets.Value("float64"), |
|
"flux_red_48": datasets.Value("float64"), |
|
"lrs_class": datasets.ClassLabel(num_lrs_classes=2, names=("no", "yes")) |
|
}, |
|
|
|
} |
|
features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config} |
|
|
|
|
|
lrs_class LrsConfig(datasets.BuilderConfig): |
|
def __init__(self, **kwargs): |
|
super(LrsConfig, self).__init__(version=VERSION, **kwargs) |
|
self.features = features_per_config[kwargs["name"]] |
|
|
|
|
|
lrs_class Lrs(datasets.GeneratorBasedBuilder): |
|
|
|
DEFAULT_CONFIG = "lrs" |
|
BUILDER_CONFIGS = [ |
|
LrsConfig(name="lrs", description="Lrs dataset."), |
|
LrsConfig(name="lrs_0", description="Binary lrs_classification of lrs_class 0."), |
|
LrsConfig(name="lrs_1", description="Binary lrs_classification of lrs_class 1."), |
|
LrsConfig(name="lrs_2", description="Binary lrs_classification of lrs_class 2."), |
|
LrsConfig(name="lrs_3", description="Binary lrs_classification of lrs_class 3."), |
|
LrsConfig(name="lrs_4", description="Binary lrs_classification of lrs_class 4."), |
|
LrsConfig(name="lrs_5", description="Binary lrs_classification of lrs_class 5."), |
|
LrsConfig(name="lrs_6", description="Binary lrs_classification of lrs_class 6."), |
|
LrsConfig(name="lrs_7", description="Binary lrs_classification of lrs_class 7."), |
|
LrsConfig(name="lrs_8", description="Binary lrs_classification of lrs_class 8.") |
|
|
|
] |
|
|
|
|
|
def _info(self): |
|
info = datasets.DatasetInfo(description=DESCRIPTION, citation=_CITATION, homepage=_HOMEPAGE, |
|
features=features_per_config[self.config.name]) |
|
|
|
return info |
|
|
|
def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]: |
|
downloads = dl_manager.download_and_extract(urls_per_split) |
|
|
|
return [ |
|
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloads["train"]}) |
|
] |
|
|
|
def _generate_examples(self, filepath: str): |
|
data = pandas.read_csv(filepath) |
|
data = self.preprocess(data) |
|
|
|
for row_id, row in data.iterrows(): |
|
data_row = dict(row) |
|
|
|
yield row_id, data_row |
|
|
|
def preprocess(self, data: pandas.DataFrame) -> pandas.DataFrame: |
|
data.drop("ID-type", axis="columns", inplace=True) |
|
data = data[list(features_types_per_config["lrs"].keys())] |
|
data["lrs_class"] = data["lrs_class"].apply(lambda x: x if x < 10 else x // 10).unique() |
|
|
|
if self.config.name == "lrs_0": |
|
data["lrs_class"] = data["lrs_class"].apply(lambda x: 1 if x == 0 else 0) |
|
if self.config.name == "lrs_1": |
|
data["lrs_class"] = data["lrs_class"].apply(lambda x: 1 if x == 1 else 0) |
|
if self.config.name == "lrs_2": |
|
data["lrs_class"] = data["lrs_class"].apply(lambda x: 1 if x == 2 else 0) |
|
if self.config.name == "lrs_3": |
|
data["lrs_class"] = data["lrs_class"].apply(lambda x: 1 if x == 3 else 0) |
|
if self.config.name == "lrs_4": |
|
data["lrs_class"] = data["lrs_class"].apply(lambda x: 1 if x == 4 else 0) |
|
if self.config.name == "lrs_5": |
|
data["lrs_class"] = data["lrs_class"].apply(lambda x: 1 if x == 5 else 0) |
|
if self.config.name == "lrs_6": |
|
data["lrs_class"] = data["lrs_class"].apply(lambda x: 1 if x == 6 else 0) |
|
if self.config.name == "lrs_7": |
|
data["lrs_class"] = data["lrs_class"].apply(lambda x: 1 if x == 7 else 0) |
|
if self.config.name == "lrs_8": |
|
data["lrs_class"] = data["lrs_class"].apply(lambda x: 1 if x == 8 else 0) |
|
|
|
return data |
|
|