Python Forum
How to test and import a model form computer to test accuracy using Sklearn library
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to test and import a model form computer to test accuracy using Sklearn library
#5
@jefsummers quite simple let suppose we want to check others types of data model instead of Iris data
How we import this model for the predictions for example look at the codes as follow
This an iris data set but replace this model
from sklearn.datasets import load_iris
iris = load_iris() 
I replace iris to other model how this will happen just for an example
from sklearn.datasets import  Cancer_df
 Cancer = load_ Cancer_df() 
After that we apply your proposed model
Two types of data - continuous and categorical
Four types of predictions, then -
Continuous -> Continuous - use linear regression (or similar)
Continuous -> Categorical - use logistic regression
Categorical -> Continuous - use ANOVA (analysis of variance)
Categorical -> Categorical - use chi square
Reply


Messages In This Thread
RE: How to test and import a model form computer to test accuracy using Sklearn library - by Anldra12 - Jun-29-2021, 06:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Understanding What to test strikeouts27 0 431 Sep-09-2024, 04:25 AM
Last Post: strikeouts27
  how to test if something is a sequence? Skaperen 11 4,243 Jul-24-2024, 03:41 AM
Last Post: Skaperen
  Class test : good way to split methods into several files paul18fr 5 3,638 Jul-17-2024, 11:12 AM
Last Post: felixandrea
  model.fit and model.predict errors hatflyer 6 4,622 Nov-10-2023, 01:39 AM
Last Post: hatflyer
  How to automate loop test check on Network device jpc230 1 1,375 Oct-09-2023, 09:54 PM
Last Post: Larz60+
  How to test the high-score in my Python-game Pluviometer 2 1,665 Oct-02-2023, 06:55 PM
Last Post: deanhystad
  unittest generates multiple files for each of my test case, how do I change to 1 file zsousa 0 1,622 Feb-15-2023, 05:34 PM
Last Post: zsousa
  Presenting random test questions oradba4u 2 2,215 Sep-27-2022, 04:23 PM
Last Post: deanhystad
  How to sort .csv file test log which item first fail and paint color SamLiu 24 8,908 Sep-03-2022, 07:32 AM
Last Post: Pedroski55
  Help with bleak - how to send test to BLE device? korenron 1 3,182 Aug-28-2022, 11:28 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020