com
.
johnsnowlabs
.
ml
.
tensorflow
TensorflowClassifier
Related Doc:
package tensorflow
class
TensorflowClassifier
extends
Serializable
with
Logging
Linear Supertypes
Logging
,
Serializable
,
Serializable
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
TensorflowClassifier
Logging
Serializable
Serializable
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
TensorflowClassifier
(
tensorflow:
TensorflowWrapper
,
encoder:
ClassifierDatasetEncoder
,
verboseLevel:
nlp.annotators.ner.Verbose.Value
)
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
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
val
encoder
:
ClassifierDatasetEncoder
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getLogName
:
String
Definition Classes
Logging
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
def
internalPredict
(
inputs:
Array
[
Array
[
Float
]]
,
configProtoBytes:
Option
[
Array
[
Byte
]] =
None
)
:
Array
[
Int
]
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
log
(
value: ⇒
String
,
minLevel:
Level
)
:
Unit
Attributes
protected
Definition Classes
Logging
val
logger
:
Logger
Attributes
protected
Definition Classes
Logging
def
measure
(
labeled:
Array
[(
Array
[
Float
],
Array
[
Int
])]
,
log: (
String
) ⇒
Unit
,
extended:
Boolean
=
false
,
batchSize:
Int
=
100
)
:
Float
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
outputLog
(
value: ⇒
String
,
uuid:
String
,
shouldLog:
Boolean
,
outputLogsPath:
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
predict
(
docs:
Seq
[(
Int
,
Seq
[
Annotation
])]
,
configProtoBytes:
Option
[
Array
[
Byte
]] =
None
)
:
Seq
[
Annotation
]
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
val
tensorflow
:
TensorflowWrapper
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
train
(
inputs:
Array
[
Array
[
Float
]]
,
labels:
Array
[
String
]
,
classNum:
Int
,
lr:
Float
=
5e-3f
,
batchSize:
Int
=
64
,
dropout:
Float
=
0.5f
,
startEpoch:
Int
=
0
,
endEpoch:
Int
=
10
,
configProtoBytes:
Option
[
Array
[
Byte
]] =
None
,
validationSplit:
Float
=
0.0f
,
enableOutputLogs:
Boolean
=
false
,
outputLogsPath:
String
,
uuid:
String
=
...
)
:
Unit
val
verboseLevel
:
nlp.annotators.ner.Verbose.Value
Definition Classes
TensorflowClassifier
→
Logging
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
(
...
)
Inherited from
Logging
Inherited from
Serializable
Inherited from
Serializable
Inherited from
AnyRef
Inherited from
Any
Ungrouped