Generation

generate functionSun, 30 Apr 2023

Define input variable x: - Use dataset variable to store input data. - Write dataset[]. - Inside [] box blacket write ‘[:, 4:11]’ - Here, we are providing column 4 to 11 as input. - Then store the data into the x variable. Define input variable y: - Use dataset variable to store input data. - Write dataset[]. - Inside [] box blacket, write ‘[:, 3]’. - Here, we are providing only column number 3 as output. - Then, store the data into the y variable.

x = dataset[:, 4:11] y = dataset[: , 3]

Want to kickstart your project?Use the new AI Studio to create your code