Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Melanee-Melanee committed May 16, 2023
1 parent 2b39311 commit 2380301
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions decisiontree.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from sklearn.tree import DecisionTreeClassifier
from scipy.sparse import lil_matrix
from sklearn.feature_extraction.text import TfidfTransformer
import time

# Performs classification using Decision Tree.

Expand Down
1 change: 1 addition & 0 deletions logistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import utils
import random
import numpy as np
import time

# Performs classification using Logistic Regression.

Expand Down
2 changes: 1 addition & 1 deletion lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from keras.layers import LSTM
import utils
from keras.preprocessing.sequence import pad_sequences

import time
# Performs classification using LSTM network.

FREQ_DIST_FILE = '../train-processed-freqdist.pkl'
Expand Down
1 change: 1 addition & 0 deletions naivebayes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from sklearn.naive_bayes import MultinomialNB
from scipy.sparse import lil_matrix
from sklearn.feature_extraction.text import TfidfTransformer
import time

# Performs classification using Naive Bayes.

Expand Down
1 change: 1 addition & 0 deletions neuralnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import utils
import random
import numpy as np
import time

# Performs classification using an MLP/1-hidden-layer NN.

Expand Down
1 change: 1 addition & 0 deletions randomforest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from sklearn.ensemble import RandomForestClassifier
from scipy.sparse import lil_matrix
from sklearn.feature_extraction.text import TfidfTransformer
import time

# Performs classification using RandomForest classifier.

Expand Down
1 change: 1 addition & 0 deletions svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import numpy as np
from scipy.sparse import lil_matrix
from sklearn.feature_extraction.text import TfidfTransformer
import time

# Performs classification using SVM.

Expand Down
1 change: 1 addition & 0 deletions xgboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from xgboost import XGBClassifier
from scipy.sparse import lil_matrix
from sklearn.feature_extraction.text import TfidfTransformer
import time

# Performs classification using XGBoost.

Expand Down

0 comments on commit 2380301

Please sign in to comment.