basefunctions/classifier.py
def machine_categorizer(self, data, noncategory_var):
        '''predicts possible category based on historical data. Main category is fixed'''

        subset = data[data['cat'] == noncategory_var].copy()
        subset['scan text'] = subset['act']+' '+subset['text']
        data.loc[data['cat'] == noncategory_var, 'cat'] = self.pipeline.predict(subset['scan text'])
        del subset
        return data
predicts possible category based on historical data. Main category is fixed
predicts possible category based on historical data. Main category is fixed
predicts possible category based on historical data . Main category is fixed
def machine_categorizer(self, data, noncategory_var):
        subset = data[data['cat'] == noncategory_var].copy()
        subset['scan text'] = subset['act']+' '+subset['text']
        data.loc[data['cat'] == noncategory_var, 'cat'] = self.pipeline.predict(subset['scan text'])
        del subset
        return data
def machine_categorizer ( self , data , noncategory_var ) : subset = data [ data [ 'cat' ] == noncategory_var ] . copy ( ) subset [ 'scan text' ] = subset [ 'act' ] + ' ' + subset [ 'text' ] data . loc [ data [ 'cat' ] == noncategory_var , 'cat' ] = self . pipeline . predict ( subset [ 'scan text' ] ) del subset return data
predicts possible category based on historical data.
predicts possible category based on historical data .
'''predicts possible category based on historical data. Main category is fixed'''
self
data
noncategory_var