Community discovery algorithm -- LPA and SLPA algorithm

LPA(Label Propagation Algorithm) LPA algorithm was proposed by zhu et al in 2002. In 2007, it was applied to the field of community discovery by Usha, Nandini and Raghavan, and RAK algorithm was proposed. But most researchers call RAK algorithm LPA algorithm. LPA is a local community division based on Label Propagation. For each node in the n ...

Posted by raw100 on Fri, 04 Feb 2022 10:04:57 +0100

Machine learning | R language | use random forest to evaluate the transaction price of second-hand cars

catalogue Using random forest to evaluate the transaction price of second-hand cars Random forest principle previously on data sources Data preprocessing Data completion and variable deletion Data outlier handling Establishment and optimization of Stochastic Forest Model Tree selection Selection of independent variables Adjustment ...

Posted by akop on Fri, 04 Feb 2022 09:52:15 +0100

Fundamentals of Python: data structure of Python

brief introduction Whether doing scientific calculation or writing applications, we need to use some basic data structures, such as lists, tuples, dictionaries and so on. This article will explain these basic data structures in Python in detail. list A list is a list, which can be expressed in square brackets: In [40]: ages = [ 10, 14, 18, ...

Posted by robertvideo on Fri, 04 Feb 2022 04:27:00 +0100

List of common methods for Python learning:

catalogue 1. Add: (1) Method append (): you can add an element (the end) to the list (2) Method insert (): insert the element object before the index at the specified position (3) Method extend(): you can add elements from another collection to the list one by one 2. Change: modify according to the index 3. Check: (1) In: judge whether t ...

Posted by DJH on Fri, 04 Feb 2022 04:05:07 +0100

Community discovery algorithm - KL algorithm

K-L (Kernighan Lin) algorithm Original paper( An efficient heuristic procedure for partitioning graphs) K-L (Kernighan Lin) algorithm is a dichotomy method that divides a known network into two communities of known size. It is a greedy algorithm. Its main idea is to define a function gain Q for network partition. Q is the difference between ...

Posted by Jack_Slocum on Fri, 04 Feb 2022 03:30:40 +0100

Solve the problem that the folder cannot be deleted "folder access is denied. You need permission to perform this operation". Theoretically, this method can also be used to delete any folder

Problem description Sometimes some files in the disk will be set with complex permissions by some programs. Please forgive me for my lack of knowledge and unable to reasonably explain the permission system of Windows. The problem after this setting is that when you want to delete the folder, you will be prompted that the folder access is d ...

Posted by scratchwax2003 on Thu, 03 Feb 2022 21:10:47 +0100

(teaching-08-01) 20203 digital opening and closing (maximum number of questions with fixed answers)

Design idea: <(teaching-06) maximum number of addition and subtraction methods within 20 (optimized version 20220122 vs Python addition and subtraction method within 20) >The code can randomly generate up to addition questions and addition questions within x. A Xia tried to modify the code to make the list questions and quantity of &quot ...

Posted by l053r on Thu, 03 Feb 2022 20:57:59 +0100

Knowledge Supplement 3: Python -- class inheritance

Foundation of class class Dog: # This class is created from white space, so there are no parentheses in the definition # The first letter of the class should be capitalized def __init__(self, name, age): # init has two underscores on both sides, which is a special method # This method is defined to contain three for ...

Posted by dacio on Thu, 03 Feb 2022 20:02:58 +0100

Personal understanding of python functions (no parameters, formal and actual parameters, parameter types)

When writing automation use-case code, I always write a lot of functions and have a confusing understanding of their parameters. Here's a simple summary and summary of how functions are used Function Definition def Function name(Formal parameter 1,Formal parameter 2,...): Code #If it is necessary to return a result to the caller, it ...

Posted by zack45668 on Thu, 03 Feb 2022 19:51:19 +0100

python brush title--sum of N numbers problem (double pointer + pruning)

1. Sum of two numbers (double pointer) This was done earlier, using a hash table, with a time complexity of N But if you change your mind and use the double pointer you learned today, it will be easy to understand, although it will not decrease or increase in time complexity (the sorting complexity is NlogN). Idea: Sort first to get an order ...

Posted by taskagent on Thu, 03 Feb 2022 18:57:56 +0100