Introducing .NET for Apache Spark by Ed Elliott

Introducing .NET for Apache Spark by Ed Elliott

Author:Ed Elliott
Language: eng
Format: epub
ISBN: 9781484269923
Publisher: Apress


One crucial point is that when we use the Param object and the Set method , the data types are not validated, so it is possible to set a parameter to an incorrect type. You will not know until you either save your object or try to use it. It is often safer than to use the supplied getters and setters on each object. The Scala version of the Param object has a way to verify parameters, but in .NET, we will just need to be careful.

If you ever want to reset a parameter back to its original default value, you can use the Clear method, as shown in Listing 7-4.var seed = word2Vec.GetParam("seed");

word2Vec.Set(seed, 12345L);

Console.WriteLine(word2Vec.ExplainParams());



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.