<commit_before>#!usr/bin/env python
#-*- coding:utf-8 -*-
"""
@author: <NAME>
@date:   
"""





import pandas as pd
import sys
sys.path.append('..')
from SupervisedLearning.LinearClassification import *


print('Loading data....')
data = pd.read_table('../Data/data_test_classifer.txt', header=None).as_matrix()

X_train = data[:, 0:2]
y_train = data[:, -1].reshape(-1, 1)
<commit_msg>Update test_linearclassification.py<commit_after>#!usr/bin/env python
#-*- coding:utf-8 -*-
"""
@author: <NAME>
@date:   2017-04-26
"""





import pandas as pd
import sys
sys.path.append('..')
from SupervisedLearning.LinearClassification import *


print('Loading data....')
data = pd.read_table('../Data/data_test_classifer.txt', header=None).as_matrix()

X_train = data[:, 0:2]
y_train = data[:, -1].reshape(-1, 1)

{'fraction_non_alphanumeric': 0.20024875621890548, 'fraction_numerical': 0.024875621890547265, 'mean_word_length': 4.33112582781457, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4918448', 'n_tokens_mistral': 314, 'n_tokens_neox': 291, 'n_words': 58}