observations.karate
优质
小牛编辑
127浏览
2023-12-01
karate(path)
Load Zachary’s Karate Club (Zachary, 1977). It is a social network of friendships between 34 members of a karate club at a US university from 1970 to 1972. During the study a conflict between instructor ‘Mr. Hi’ and administrator ‘Officer’ led the club to split into two. Half of the members formed a new club around ‘Mr. Hi’; other members found a new instructor or quit karate.
Args:
path
: str. Path to directory which either stores file or otherwise file will be downloaded and extracted there. Filename iskarate.gml
.
Returns:
Tuple of adjacency matrix as a np.darray x_train
with 34 rows and 34 columns and np.darray y_train
of class memberships (0 for ‘Mr.Hi’ and 1 for ‘Officer’).
Zachary, W. W. (1977). An information flow model for conflict and fission in small groups. Journal of Anthropological Research, 33(4), 452–473.