Hi all,
When I was working on the modify_domain_of_features
function in the first week’s assignment, I saw that not all the specified features had their domain updated.
My implementation:
for feature in features_list:
tfdv.set_domain(schema=schema, feature_path=feature, domain=to_domain_name)
The features_list
:
domain_change_features = ['repaglinide', 'nateglinide', 'chlorpropamide', 'glimepiride',
'acetohexamide', 'glipizide', 'glyburide', 'tolbutamide', 'pioglitazone',
'rosiglitazone', 'acarbose', 'miglitol', 'troglitazone', 'tolazamide',
'examide', 'citoglipton', 'insulin', 'glyburide-metformin', 'glipizide-metformin',
'glimepiride-pioglitazone', 'metformin-rosiglitazone', 'metformin-pioglitazone']
After running the function and displaying the schema I still get:
‘acetohexamide’ ‘No’, ‘Steady’
Even though I specified ‘metformin’ (‘Down’, ‘No’, ‘Steady’, ‘Up’) as the to_domain_name
. The test code does not consider the acetohexamide feature and it says things are going fine. However, I expected it to now have ‘Down’, ‘No’, ‘Steady’, ‘Up’ in its domain.
Can someone help me understand this behavior?
Best,
Pepijn