Skip to content

Commit

Permalink
Feat:Added model LR
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianCB-dev committed Dec 4, 2022
1 parent 1b829c0 commit e9a6a15
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 98 deletions.
4 changes: 4 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from preprocessing_service import Preprocesamiento
from model_word2vec_service import ModelWord2Vec
import joblib

pp = Preprocesamiento()
w2v = ModelWord2Vec()
clf = joblib.load('./models/logistic_regression.pkl')

comentario = "Estoy muy triste y no se que hacer"
# Escribe un comentario triste y largo
Expand All @@ -15,3 +17,5 @@
# Obtener la respuesta por item basandose en la similitud de coseno
results_beck = w2v.get_result_beck(cosine_similarity_beck)
print("El comentario lleno el inventario BECK de esta manera:", results_beck)

print('Predicción:', clf.predict([results_beck]))
48 changes: 0 additions & 48 deletions models/KNN/test1.py

This file was deleted.

50 changes: 0 additions & 50 deletions models/SVM/test1.py

This file was deleted.

Binary file added models/logistic_regression.pkl
Binary file not shown.

0 comments on commit e9a6a15

Please sign in to comment.