Skip to content

Commit

Permalink
Removed scale factor from second-order LINE
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCappelletti94 committed Aug 9, 2022
1 parent 32ea00a commit e59e63f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions graph/cpu_models/src/second_order_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ impl GraphEmbedder for SecondOrderLINE {
}

fn _fit_transform(&self, graph: &Graph, embedding: &mut [&mut [f32]]) -> Result<(), String> {
let scale_factor = (self.model.embedding_size as f32).sqrt();
let mut learning_rate = self.model.learning_rate / scale_factor;
let mut learning_rate = self.model.learning_rate;
let mut random_state = self.get_random_state();

let shared_node_embedding = ThreadDataRaceAware::new(embedding);
Expand Down

0 comments on commit e59e63f

Please sign in to comment.