You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are the requirements for using var and it needs to be public?
Every time I call method getLPAConfig, var changes, so this var is unreliable as "static", why are we doing this?
the original intention is to set default value for some configs. But the default value is set in GetOrElse function, so the var looks no useless.
we can update it as
val maxIter = lpaConfig("algorithm.labelpropagation.maxIter").toInt
val encodeId = ConfigUtil.getOrElseBoolean(lpaConfig, "algorithm.labelpropagation.encodeId", false)
LPAConfig(maxIter, encodeId)
I am confused with these codes.
What are the requirements for using
var
and it needs to be public?Every time I call method
getLPAConfig
,var
changes, so thisvar
is unreliable as "static", why are we doing this?The text was updated successfully, but these errors were encountered: