Ignore:
Timestamp:
Aug 2, 2019, 7:35:10 PM (5 years ago)
Author:
Murray Heymann <heymann.murray@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
58603fd7faac3d049f61ca0b65d89e4be0a664f9
Parents:
fece1392f8e9ff07b64d0ed4e5ec57bfa6dbf258
git-author:
Murray Heymann <heymann.murray@gmail.com>2019-08-02 19:35:10+02:00
git-committer:
Murray Heymann <heymann.murray@gmail.com>2019-08-02 19:35:13+02:00
Message:
Use sklearn to count keyword occurances
File:
1 edited

Legend:

Unmodified
Added
Removed
  • machine_learning/model/predictor.py

    rfece13 r112c79  
    44
    55# import cProfile
    6 import os
    7 import sys
    8 import time
    96
    107# Third party imports
    118import numpy as np
    129from sklearn.base import BaseEstimator, ClassifierMixin
    13 
    14 # Local imports
    15 from common.keyword_vector import vector_distance, count_occurances, \
    16         read_dictionary, normalise_vector
    17 from common.lookuptable import create_table
    18 from common.constants import KEYWORDS_FILE
    1910
    2011
Note: See TracChangeset for help on using the changeset viewer.