LabiKSV / intro-to-ai-farhan-labi

0 stars 0 forks source link

Linear Regression issue #2

Open LabiKSV opened 2 years ago

LabiKSV commented 2 years ago

The linear regression code is showing an issue (as shown below)

int64 prob

When tracking back, the issue seems to have something to do with the indexing, right at the point where the code counts the missing values.

From my knowledge it seems like the code is trying to find the index in train_index, under the column string judging by the following bit of code under indexing.py:

indexing issue

Simply put, the code is attempting to find the values of 'train_index' in 'columns' but columns is literally a string containing "Growth Factor of New Deaths"

LabiKSV commented 2 years ago

The problem has come down to the sample sizes of train_index and test_index being different. So I'll have to reshape it or not use it, depending on the direction of which e are trying to go at inconsistentSample