Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Nabha Shahin

Nabha Shahin

Community Learner
Share
7Questions
7Answers
8.3KViews on questions

Clothing Store Lesson from CodeHS

If you're just starting out with programming on CodeHS, the Clothing Store lesson is a great introduction to working with variables, user input, and simple math operations — all within a fun and relatable scenario. In this lesson, you're basically simulating a basic checkout system for a clothing store. It’s pretty…

Java

Answered Apr 7, 2025 · 604 Views Read answer →

Python random state in splitting dataset

To solve the train test split random state, you should go through the answer further: Random_state can be 0 or 1 or any other integer. It should be the same value if you want to validate your processing over multiple runs of the code. By the way, I have seen random_state=42 used in various official examples of scikit.…

Python

Answered Mar 9, 2021 · 1.1K Views Read answer →

Explain with a case study how to perform a Naive Bayes analysis using R.

To perform a Naive Bayes analysis let us read the following data First we will import the data both for training and testing training_set = read.csv(file.choose())#salary_train test_set = read.csv(file.choose())# salary_test Now we will encode the target feature as factor # Encoding the target feature as factor…

Data Science

Answered Nov 21, 2019 · 1.0K Views Read answer →

More members from the Data Science community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.