Dell-EMC
E20-065 · Question #61
You develop a Python script "logisticpy" to evaluate the logistic function denoted as f(y) for a given value y that includes the following Pig code: Register 'logistic.py' using jython as udf; z =…
The correct answer is D. Tuples (y, f(y)). See the full explanation below for the reasoning.
Question
You develop a Python script "logisticpy" to evaluate the logistic function denoted as f(y) for a given value y that includes the following Pig code:
Register 'logistic.py' using jython as udf; z = FOREACH y GENERATE $0, udf.logistic ($0); DUMP z; What is the expected output when the Pig code is executed?
Options
- A0
- BJython is not a supported language
- CValue of f(y) for ally
- DTuples (y, f(y))
How the community answered
(27 responses)- A4% (1)
- B11% (3)
- C4% (1)
- D81% (22)
Community Discussion
No community discussion yet for this question.