StatisticsGen not generating statistics

Hi,

Programming Assignment: Feature Engineering

I tried to follow the instructions and was successful till generating the examples using the get_records function.

But I am not able to get the StatisticsGen code part to run.

this is the code I am using.

Please let me know what could be the issue.

Hi @sck

The problem you’re mentioning is regarding an assignment? Which one, the assignment for week1?

Course 2, week2 final lab assignment.
Programming Assignment: Feature Engineering

1 Like

Hi @sck

The reason is that you are not running your statistics_gen in the context that you setup earlier. Try this:

context.run(statistics_gen)

This context contains the stored metadata for your pipeline.

1 Like

Hi @sck

my suggestion is that you go carefully through the Lab: Feature Engineering pipeline. You’ll discover that the pattern for executing those components (like StatisticsGen) is always the same.

2 Likes

Thanks for the response, this worked.

1 Like

I was about to answer in the same way. The run looks weird, but it is actually ok. I have the feeling that this is going to be very common among learners.