Upgrade Skill Di ITBOX Jadi Lebih Hemat
Special Diskon 50%
Sampai 16 November 2026!
Hari
Jam
Menit
Detik
GARUDABOX

praktik Train Test

Beranda › Forums › Belajar Data Science Tingkat Pemula › praktik Train Test

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #192997
    Eka Sapta
    Participant

      selamat siang coach

      ketika saya melakukan praktek Train Test, ketika memasukan rumus split = sample.split(df$Purchased,SplitRatio = 0,7)
      yang keluar di consolenya > split = sample.split(df$Purchased,SplitRatio = 0,7)
      Error in sample.split(df$Purchased, SplitRatio = 0, 7) :
      Error in sample.split: Vectors ‘Y’ and ‘group’ have to have the same length

      dan di environment nya tidak muncul apa apa

      #193028
      Coach William
      Moderator

        Dear Eka,

        Tampaknya kesalahannya adalah di angka nol koma tujuh kamu, bahasa R (dan semua bahasa pemrograman lain) menggunakan bahasa inggris dan dalam bahasa inggris harusnya nol koma tujuh ditulis 0.7, bukan 0,7.

        Regards

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.
      Shopping cart0
      There are no products in the cart!
      Continue shopping