def check_feature_set(feature_sets):
    assert feature_sets != {}, "no feature sets present"

    N = None
    for ft in feature_sets.keys():
        N2 = feature_sets[ft].shape[0]
        if N is None:
            N = N2
        else:
            assert N >= 1, "should be at least one individual"
            assert N == N2, "# of individuals do not match up across feature sets"

    for set in feature_sets.keys():
        if np.any(np.isnan(feature_sets[set])):
            raise Exception("found Nan in set %s" % set)
There should be two categories: private and Uncategorized
dataset/ETHPy150Open MicrosoftResearch/Azimuth/azimuth/features/featurization.py/check_feature_set--crossover with--dataset/ETHPy150Open nitely/Spirit/spirit/category/tests.py/CategoryMigrationTest.test_categories