object AssertionDLGraphResolver
Finds the best embedded (or user provided) graph for an AssertionDLApproach training run.
Contrary to the dense classifier graphs, nothing is padded on the Scala side here: the word
embeddings are fed with their real dimension and the labels are fed one hot encoded with the
real number of classes. Both dimensions must therefore match the graph exactly. The maximum
sentence length is not part of the contract anymore: graphs built with
sparknlp_jsl.training.tf_graph accept any sequence length, so setMaxSentLen does not require
a dedicated graph.
- Alphabetic
- By Inheritance
- AssertionDLGraphResolver
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
DefaultHiddenUnits: Int
The n_hidden value all the embedded graphs are built with.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
listGraphs(localGraphPath: Option[String] = None): Seq[AssertionDLGraphInfo]
Lists the AssertionDL graphs of the JAR resources or of a user provided folder.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parseDimensions(fileName: String): Option[(Int, Int, Int)]
-
val
resourceFolder: String
JAR resource folder with the embedded AssertionDL graphs
-
def
searchForSuitableGraph(embeddingsDim: Int, nClasses: Int, localGraphPath: Option[String] = None): AssertionDLGraphInfo
Returns the graph matching the embeddings dimension and the number of labels of the training dataset.
Returns the graph matching the embeddings dimension and the number of labels of the training dataset.
- embeddingsDim
dimension of the word embeddings of the pipeline
- nClasses
number of distinct labels of the training dataset
- localGraphPath
optional user folder with graphs, takes precedence over the embedded ones
-
def
selectGraph(candidates: Seq[AssertionDLGraphInfo], embeddingsDim: Int, nClasses: Int): Option[AssertionDLGraphInfo]
Picks the graph to train with out of the given candidates: both dimensions must match exactly, the topology of the embedded graphs is preferred, then the largest capacity.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()