Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcoded target_colname in /content/rtfm/rtfm/data_sources/utils.py #18

Open
dariabroscoteanu opened this issue Oct 3, 2024 · 0 comments

Comments

@dariabroscoteanu
Copy link

def generate_files_from_csv(
    csv_src: str, output_dir: str, to_regression: bool, task: Optional[str] = None
):
    """Generate the FeatureList and TaskConfig for a CSV file,
    and write the results (including copy of CSV) to output_dir."""
    if task is None:
        task = os.path.basename(csv_src).replace(".csv", "")

    df = pd.read_csv(csv_src)

    df.columns = [clean_colname(colname) for colname in df.columns]

    target_colname = df.columns[-1]

target_colname is required for running the quick evaluation pipeline, but it is not used in the code correctly, only if it is the last column in the dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant