com
.
intel
.
analytics
.
bigdl
.
example
.
udfpredictor
Utils
object
Utils
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
Utils
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Type Members
type
Model
=
AbstractModule
[
Activity
,
Activity
,
Float
]
case class
Sample
(
filename:
String
,
text:
String
)
extends
Product
with
Serializable
type
SampleShape
=
Array
[
Int
]
type
TFP
=
TextClassificationUDFParams
type
Word2Index
=
Map
[
String
,
Int
]
type
Word2Meta
=
Map
[
String
,
WordMeta
]
type
Word2Vec
=
Map
[
Float
,
Array
[
Float
]]
Value Members
final
def
!=
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
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]
)
def
genUdf
(
sc:
SparkContext
,
model:
Model
,
sampleShape:
Array
[
Int
]
,
word2Index:
Word2Index
,
word2Vec:
Word2Vec
)
(
implicit
ev:
TensorNumeric
[
Float
]
)
: (
String
) ⇒
Int
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getModel
(
sc:
SparkContext
,
param:
TFP
)
: (
Model
,
Option
[
Word2Meta
],
Option
[
Word2Vec
],
SampleShape
)
def
getResourcePath
(
resource:
String
)
:
String
def
getTextClassifier
(
param:
TextClassificationUDFParams
)
:
TextClassifier
def
getWord2Vec
(
word2Index:
Map
[
String
,
Int
]
)
:
Map
[
Float
,
Array
[
Float
]]
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
loadTestData
(
testDir:
String
)
:
IndexedSeq
[
Sample
]
val
localParser
:
OptionParser
[
TextClassificationUDFParams
]
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
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
(
...
)
Inherited from
AnyRef
Inherited from
Any
Ungrouped