Skip to content
Snippets Groups Projects
Commit 76bd6a09 authored by Caron Olivier's avatar Caron Olivier
Browse files
parents 7b748685 6327a860
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class HillClimbing:
score = self.evaluate(self.current_sol, self.target_word)
for neighbor in self.model.neighbor_solutions(self.current_sol, self.vocab, self.target_word):
next_score = self.evaluate(neighbor, self.target_word)
if next_score - score > 0.01:
if next_score - score > 0.04:
score = next_score
self.set_current_solution(neighbor)
return score
......
runHC.sh 0 → 100755
#!/bin/bash
word=$3
dataset=$1
pos_only=$2
for ((seed=1; seed<= 50; seed++))
do
sbatch we_slurm.sl $dataset $pos_only $seed $word
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment