Commit 9faeef82 authored by lgehring's avatar lgehring
Browse files

update

parent 862ecac3
from imblearn.combine import SMOTEENN, SMOTETomek
from imblearn.ensemble import BalancedBaggingClassifier, RUSBoostClassifier
from imblearn.under_sampling import ClusterCentroids
from rdflib import Graph, URIRef
from sklearn.ensemble import RandomForestClassifier
from sklearn.svm import SVC, LinearSVC
from sklearn.tree import DecisionTreeClassifier
from pykeen_embeddings import generate_and_save_embeddings, load_embeddings_from_file
from sklearn.svm import LinearSVC
from pykeen_embeddings import load_embeddings_from_file
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from ml_utils import balance_data
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import f1_score, precision_score, recall_score
from lib import knn
from lib import ml_metrics
from imblearn.over_sampling import RandomOverSampler, SMOTE, ADASYN
from sklearn.metrics import f1_score
from imblearn.over_sampling import SMOTE
def read(path, format):
......@@ -96,10 +86,10 @@ for lp in range(1, 25):
print(f'LP{lp}, f1:{f1}')
def Average(lst):
def average(lst):
return sum(lst) / len(lst)
average = Average(scores)
average = average(scores)
print(average)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment