Skip to content

TypeError: object of type 'NoneType' has no len() #23

@karakastarik

Description

@karakastarik

Hi, thanks for this amazing package.

When i did pip install transitionMatrix all modules couldn't be installed. Anyway, i installed from github but there is an another issue here:

TypeError                                 Traceback (most recent call last)
<ipython-input-13-bb59c58d3d9a> in <module>
     20 myEstimator = es.CohortEstimator(states=myState, ci={'method': 'goodman', 'alpha': 0.05})
     21 # myMatrix = matrix.CohortEstimator(states=myState)
---> 22 result = myEstimator.fit(sorted_data)
     23 #myEstimator.summary()

~\Downloads\transitionMatrix-master\transitionMatrix-master\transitionMatrix\estimators\cohort_estimator.py in fit(self, data, labels)
     92         # The number of cohorts is the number of intervals
     93         # Minimally two (initial and final)
---> 94         cohort_dim = len(self.cohort_bounds) - 1
     95         event_count = data[id_label].count()
     96 

TypeError: object of type 'NoneType' has no len()

Thanks.

Metadata

Metadata

Assignees

Labels

buga documented bug

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions