Skip to content

Obtaining inverse transform values from tft.transform #185

@agonojo

Description

@agonojo

I'm throughly confused by the tft transform output.
I've read dozens and dozens of documentation pages and I've even tried (dumbly) to explore the saved_model.pb graph to see if I could find the constants computed during pre_processing with

tft.scale_to_z_score(outputs[key], name='z_scale_'+key) #for the sake of an example we can pretend key = 'height'

how can I obtain the std and mean computed during the AnalyzeAndTransformDataset step for my numeric column "height" ?

I clearly see in my transformed_data files that it's been transformed. In particular, this is important for my target prediction (regression problem). I feel silly. Someone please point me in the right direction?

If it helps, I'm using the census_v2 code as an example where the only major difference in code is our model architecture and loss function (mine is custom)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions