Files
tomosco/notes.ipynb
2022-04-19 13:55:24 +02:00

4.6 KiB

In [ ]:
#top n of n evaluation
#each document gives out its underlying n topics, which each one has its own ranked subtopic for the contributed topic
#til now i saved the most contributed topic to the document
#if i were to add the top n topics contributed to the document i may have at most n different groups
# 
# now lets say a given input document has 30% topic A 30% topic B and 40% topic C
# til now the document would be represented by the only topic C's highest contributed paper and its organisation, meaning only a singular organisation
# now the topic C has to account for not only the paper with the highest contribution but also the highest N contribtions, which also correspond to topic C
# among those highest N the probability that other organisations will be matched is higher
# do the same for topics A and B

#multiplying conditional probabilities after adding them up?
In [ ]:
#check the word frequency and filter it 
#additionally add more stopwords
#check bigrams and trigrams

#take first 300 publiations for every institute randomly
#and calculate the ranking method with the first algorithm (validate with the training data)
# dont use the second algorithm (since it doesnt make sense anymore)

# next step formulate the training vs testing set and calculate the scores


#whats the optimal N in top n algorithm

#which publications by every group are assigned false and why, verify it
#which papers define the essence of group

#compare Bert vs LDA
In [ ]:
# move the the methods into the utility class 
# 
# plot the top n algorithm based on accuracy
# 
# implement a util class for bert 
# 
# compare the accuracy of bert model to LDA
# 
# find some related work
# 
#  
In [ ]:
#build a confusion matrix
#calculate accuracy, precision, recall, f1 score micro, macro

#we the following:
# X_train(trainig_set), X_test(test_set), y_train (training_label), y_test(test_label)
# in the first evaluation case X_train == X_test && y_train == y_test

# what needs to be done in highest_n algorithm
# in evaluation if the right class found in top n > assign it to the vector
# if no right classes in top n assign the highest contributed/similar to the vector

# result two vectors > y_test && y_predict
# which should be of same length 

# then confusion matrix with sklearn and etc


# in the second evaluation it is a bit different since we do have test and train sets
In [ ]:
# #
# calculate a square matrix of groups/groups institutes/institutes person/person from collabs
# with this matrix we could measure the top n collabs in group/institute/person level
# use the topic modelling's merge matrix 
# per paper get the model suggestions
# 
In [ ]:
# implement two confusion matrixes per Model
# the existing collabs
# for every institute in the main list count collabs to others
# for every generated collabs in the main institute list count collabs to others