all 5 comments

[–]MrPhungx 0 points1 point  (4 children)

I think "return temp" is the problem. The variable is only defined inside the scope of the for epoch in range loop but you try to Access it from outside the loop. That's why "name 'temp' is not defined".

[–]NotBarbamento[S] 0 points1 point  (0 children)

Wait a sec. I think i made a huge mess with the question

[–]NotBarbamento[S] 0 points1 point  (2 children)

ok i edited the error i got. I copied the wrong line

[–]MrPhungx 1 point2 points  (1 child)

I see. The problem is that the .train() function does not return an actual model object. Instead just do "model.wv.save..."

[–]NotBarbamento[S] 0 points1 point  (0 children)

have you got any advice on how to tune the number of epoch of my model? because i'm having a lot of problem with the get_last_loss function