Skip to content

TypeError: create_sample_data_csv() missing 1 required positional argument: 'file_name' in ml_service/pipelines/diabetes_regression_build_train_pipeline.py", line 62 #253

@martin-weber

Description

@martin-weber

In "Publish Azure Machine Learning Pipeline" of "Model CI Pipeline" I got the TypeError: create_sample_data_csv() missing 1 required positional argument: 'file_name' in ml_service/pipelines/diabetes_regression_build_train_pipeline.py", line 62

I was able to fix it by exchanging the lines 62 and 65 in ml_service/pipelines/diabetes_regression_build_train_pipeline.py and add the file_name as parameter to create_

Before:

    # Check to see if dataset exists
    if (dataset_name not in aml_workspace.datasets):
        # This call creates an example CSV from sklearn sample data. If you
        # have already bootstrapped your project, you can comment this line
        # out and use your own CSV.
        create_sample_data_csv()

        # Use a CSV to read in the data set.
        file_name = 'diabetes.csv'

After fixing:

    # Check to see if dataset exists
    if (dataset_name not in aml_workspace.datasets):
        # Use a CSV to read in the data set.
        file_name = 'diabetes.csv'

        # This call creates an example CSV from sklearn sample data. If you
        # have already bootstrapped your project, you can comment this line
        # out and use your own CSV.
        create_sample_data_csv(file_name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions