C2W3_Assignment: got expected answers but scored 0/120

For example, the grader output from exercise 2 - 12:

ExampleGen

Failed test case: example_gen has incorrect type.
Expected:
<class ‘tfx.components.example_gen.csv_example_gen.component.CsvExampleGen’>,
but got:
<class ‘NoneType’>.

StatisticsGen

Failed test case: statistics_gen has incorrect type.
Expected:
<class ‘tfx.components.statistics_gen.component.StatisticsGen’>,
but got:
<class ‘NoneType’>.

SchemaGen

Failed test case: schema_gen has incorrect type.
Expected:
<class ‘tfx.components.schema_gen.component.SchemaGen’>,
but got:
<class ‘NoneType’>.

Curating the Schema

Failed test case: schema has incorrect type.
Expected:
<class ‘tensorflow_metadata.proto.v0.schema_pb2.Schema’>,
but got:
<class ‘NoneType’>.

Serving Environment

Failed test case: schema has incorrect type.
Expected:
<class ‘tensorflow_metadata.proto.v0.schema_pb2.Schema’>,
but got:
<class ‘NoneType’>.

ImportSchemaGen

Failed test case: user_schema_importer has incorrect type.
Expected:
<class ‘tfx.components.schema_gen.import_schema_gen.component.ImportSchemaGen’>,
but got:
<class ‘NoneType’>.

Statistics with the new schema

Failed test case: learner_statistics_gen_updated has incorrect type.
Expected:
<class ‘tfx.components.statistics_gen.component.StatisticsGen’>,
but got:
<class ‘NoneType’>.

ExampleValidator

Failed test case: example_validator has incorrect type.
Expected:
<class ‘tfx.components.example_validator.component.ExampleValidator’>,
but got:
<class ‘NoneType’>.

preprocessing_fn

Failed test case: preprocessing_fn has incorrect type.
Expected:
typing.Callable,
but got:
<class ‘NoneType’>.

Transform

Failed test case: example_validator has incorrect type.
Expected:
<class ‘tfx.components.transform.component.Transform’>,
but got:
<class ‘NoneType’>.

get_parent_artifacts

Failed test case: get_parent_artifacts has incorrect type.
Expected:
typing.Callable,
but got:
<class ‘NoneType’>.

Anyone know how to solve this?

Hi! Welcome to Discourse! By any chance, did you rename the notebook? The grader will look for the original filename and that might be the issue here. Kindly check. Thanks!

Nope. I didn’t rename the notebook.

I got 10/10 for this 1st question.

Hi! Please check your inbox. Thanks!

I have sent the notebook to you. Please help investigate it. Thanks!

Hi! It turns out there is a #grade-up-to-here tag in the solution for Exercise 1. Thus the next exercises are ignored by the grader. Please remove that tag and you’ll get the perfect score! I tried it on my end and it works. Just don’t forget to save before submitting. Hope it also works for you!

1 Like

Thanks for your help. Such a life saver!!

1 Like

Awesome! Glad it worked! Great job on the assignment by the way!