microsoft / Elevation

End-to-end guide design for CRISPR/Cas9 with machine learning
MIT License
126 stars 34 forks source link

question #3

Open ylgao1 opened 5 years ago

ylgao1 commented 5 years ago

I already install the model successfully. But when I run the the test code ,p=Predict(),there are some errors. {'bandwidth': 0.23} featurizing data... Traceback (most recent call last): File "", line 1, in File "elevation/cmds/predict.py", line 46, in init self.base_model = self.get_base_model() File "elevation/cmds/predict.py", line 88, in get_base_model force_compute=force_compute File "elevation/util.py", line 45, in get_or_compute result = fargpair0 File "elevation/prediction_pipeline.py", line 62, in train_base_model set_target_fn=set_target_elevation, pam_audit=False, length_audit=False) File "/home/gyl/.conda/envs/elevation/lib/python2.7/site-packages/azimuth/model_comparison.py", line 325, in run_models Y, feature_sets, target_genes, learn_options, num_proc = setup_function(test=test, order=order, learn_options=partial_learn_opt, pam_audit=pam_audit, length_audit=length_audit) # TODO precompute features for all orders, as this is repated for each model File "elevation/model_comparison.py", line 75, in setup_elevation feature_sets, _garb = featurize_data_elevation(data, learn_options) File "elevation/model_comparison.py", line 612, in featurize_data_elevation ft.check_feature_set(feature_sets) File "/home/gyl/.conda/envs/elevation/lib/python2.7/site-packages/azimuth/features/featurization.py", line 126, in check_feature_set if np.any(np.isnan(feature_sets[set])): File "/home/gyl/.conda/envs/elevation/lib/python2.7/site-packages/pandas/core/generic.py", line 917, in nonzero .format(self.class.name)) ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). I don't know how to solve the problem