extractParamMap ( extra = None ) ¶Įxtracts the embedded default param values and user-supplied Returns the documentation of all params with their optionallyĭefault values and user-supplied values. Parameters extra dict, optionalĮxtra parameters to copy to the new instance Returns JavaParamsĬopy of this instance explainParam ( param ) ¶Įxplains a single param and returns its name, doc, and optionalĭefault value and user-supplied value in a string. So both the Python wrapper and the Java pipelineĬomponent get copied. Then make a copy of the companion Java pipeline component withĮxtra params. copy ( extra = None ) ¶Ĭreates a copy of this instance with the same uid and someĮxtra params. Returns an MLWriter instance for this ML instance.Ĭlears a param from the param map if it has been explicitly set. Transforms the input dataset with optional parameters. Sets a parameter in the embedded param map. Save this ML instance to the given path, a shortcut of ‘write().save(path)’. Returns an MLReader instance for this class. Reads an ML instance from the input path, a shortcut of read().load(path). Tests whether this instance contains a param with a given (string) name.Ĭhecks whether a param is explicitly set by user or has a default value.Ĭhecks whether a param is explicitly set by user. Gets the value of outputCol or its default value.Ĭhecks whether a param has a default value. Gets the value of a param in the user-supplied param map or its default value. Gets the value of inputCol or its default value. Returns the documentation of all params with their optionally default values and user-supplied values.Įxtracts the embedded default param values and user-supplied values, and then merges them with extra values from input into a flat param map, where the latter value is used if there exist conflicts, i.e., with ordering: default param values < user-supplied values < extra. tokens TrueĬlears a param from the param map if it has been explicitly set.Ĭreates a copy of this instance with the same uid and some extra params.Įxplains a single param and returns its name, doc, and optional default value and user-supplied value in a string. load ( tokenizerPath ) > loadedTokenizer. save ( tokenizerPath ) > loadedTokenizer = Tokenizer. > tokenizerPath = temp_path + "/tokenizer" > tokenizer. TypeError: Method setParams forces keyword arguments. setParams ( "text" ) Traceback (most recent call last). head () Row(text='a b c', tokens=) > # Must use keyword arguments to specify params. head () Row(text='a b c', words=) > tokenizer. head () Row(text='a b c', tokens=) > # Temporarily modify a parameter. head () Row(text='a b c', words=) > # Change a parameter. createDataFrame (, ) > tokenizer = Tokenizer ( outputCol = "words" ) > tokenizer.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |