Pyspark MLib

Quiz
•
Computers
•
University
•
Hard
FRIKA NUGROHO
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Untuk memuat dataset CSV ke dalam DataFrame di Spark, metode mana yang digunakan?
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Lengkapi kode pada titik-titik untuk menggabungkan atribut menjadi satu vektor!
assembler = VectorAssembler(.........=selected_features, .........="featuress")
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Lengkapi kode berikut untuk melakukan pembagian dataset menjadi data latih dan data uji, dimana data uji diberikan jumlah subset 20% !
train_data, test_data = data.randomSplit(.........)
train_data, test_data = data.randomSplit([0.6, 0.4])
train_data, test_data = data.randomSplit([0.8, 0.2])
train_data, test_data = data.randomSplit([0.7, 0.3])
train_data, test_data = data.randomSplit([0.9, 0.1])
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Fungsi mana yang digunakan untuk menghitung jumlah baris dalam DataFrame di Spark?
df.size()
df.rows()
df.count()
df.length()
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Fungsi mana yang digunakan untuk menampilkan skema DataFrame di Spark?
df.schema()
df.displaySchema()
df.printSchema()
df.showSchema()
6.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
Lengkapi kode dibawah ini, agar hanya mengambil kolom yang memiliki fitur numerik !
numeric = [t[0] for t in df.dtypes if t[1] == 'int']
numeric_summary = df.select(............).summary()
numeric_summary.show(truncate=False)
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Fungsi mana yang digunakan untuk menghapus kolom dari DataFrame di Spark?
df.dropCol()
df.remove()
df.drop()
df.delete()
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Sains Komputer Tingkatan 5 - 1.2.4 Membincangkan penterjemah

Quiz
•
1st Grade - Professio...
15 questions
Lec1

Quiz
•
University
20 questions
Bid Data: Day 2

Quiz
•
KG - Professional Dev...
25 questions
Takeshi's Castle Code bingo

Quiz
•
University
16 questions
Power BI 16112022

Quiz
•
University
20 questions
Module 3 - Introduction to Programming and Algorithm

Quiz
•
University
17 questions
Java Collection Framework

Quiz
•
University
20 questions
Micro Arch - CPUs & Fetch-Execute

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University