Questions tagged [test-data]
246 questions
0
votes
1 answer
stratify sklearn train_test_split using dummy vector for 'stratify parameter
I want to split my data into train, val, and test sets, using the stratify parameter in the train_test_split library.
I want to use a binary dummy vector (the vector name is prop) for the stratify parameter, making the test's labels proportion the…

Amit S
- 225
- 6
- 16
0
votes
0 answers
Test Data Management Approach
I have test data prepared in the form of JSON responses. We have different responses mapped against different request parameters. The test data is used for automation tests. For now data is picked from JSON files rather than calls going to the…

Tania
- 49
- 2
0
votes
1 answer
Playwright: Test 1 testCase with different data from JSON file
Hi i'm having difficulty in reading data from Json file as I want to read different data from json file and pass it to 1 test case.
Json file :
{
"allCaes":
{
"TestCase1":
…

Nadia Ali
- 1
- 1
- 2
0
votes
1 answer
Running test using TestDataMethod in MSTest in Azure-Devops
I have an API test that run within Azure Devops pipeline using TestDataMethod within MSTest. My tests run fine, but problem is all tests reported have the same name, so kind of difficult to figure out which test failed. This works fine in Visual…

Prasu
- 1
- 1
0
votes
2 answers
Where can I find a boatload of source files for stress testing source scanning systems?
I thought the Linux kernel would have a massive amount of SLOC but it isn't even making OpenGrok blink. I know the question of the largest project has been asked but what collection of code is arguable the largest. i would prefer either tar, gz,…

ojblass
- 21,146
- 22
- 83
- 132
0
votes
1 answer
how to give input to loaded .pkl model in python
I have a Random Forest model, and model saved in .pkl file.
I have loaded the .pkl model but now I have to input the test data and predict the accuracy.
how to input file to .pkl model?
import pickle
def read_from_pickle(RF):
with open(RF,…
0
votes
0 answers
Numeric value read as decimal during data-driven testing in Selenium
I am trying to fetch test data from the excel sheet but it reads the integer value as decimal. Every integer value comes up with a decimal followed by zero.
I have used apache poi for data driven testing.
Method to fetch String values as well as…

Ujjawal
- 35
- 1
- 5
0
votes
1 answer
Is there a python function for splitting the dataset?
I am trying figure out how I can split my train and test set in a way that, one of the features' mean, for ex. price will be constant for both train and test data. How can I do it? Thanks!

irem baz
- 1
0
votes
1 answer
Split data in 5 subsets with choose(k,n) & NOT with sample()
I want to split train and test but with choose() function not with sample() in R.
I have 58 rows and 28 columns on my dataset (a csv file ) and I want to do a 10-fold or 5-fold CV on this dataset.
How am I going to write the code down for this task…

pkr
- 3
- 1
0
votes
1 answer
KeyError: "['features'] not found in axis"
This is another error when I am trying to split the balanced dataset into training and test set by 80% and 20% using the KNN model in Python.
What is meant by the error given below?
y = ["TCGA.22.5482.LUSC.C1"]
x =…

dkareer
- 13
- 6
0
votes
1 answer
Issue with excluding a data in Jmeter Testing With CSV
I have an api Request such as this
"partnerServiceId":"${partnerServiceId}",
"customerNo":"${customerNo}",
"virtualAccountNo":"${virtualAccountNo}",
"virtualAccountName":"${virtualAccountName}",
…

BillyBudiharto
- 17
- 1
- 2
- 7
0
votes
2 answers
Test data snapshot using liquibase
I have a very basic knowledge on liquibase.My project team is planning to use Liquibase for Test data snapshot. we have a cloud database (Postgresql) for different microservices. we have planned to take Test data snap before scripts execution and…

kathir43
- 37
- 7
0
votes
1 answer
fit CountVectorizer on training and test data to not miss any words
I have a training date set for which I know the labels for the classification and a test data set where I do not havve the labels.
Now, I want to fit the Vectorizer to the union of the training and test reviews to not miss any words.
from…

ghxk
- 33
- 4
0
votes
1 answer
R dataframe filling named columns with random sample data
I am trying to generate a lot of test data for other programs.
Working in R Studio I import an SPSS sav file which has 73 variables and the values and labels recorded in it using Haven as a dataframe "td". This gives me all the variable names which…

Peter King
- 91
- 8
0
votes
1 answer
How do we create pojo class and set values for array of JSON
How do we create pojo class and set values for array of JSON
Sample
{
"expiresAt": "2022-04-28T09:28:00.890Z",
"qualifiers": [
{
"dataType": "INTEGER",
"key": "/account.ACCOUNT_NO",
"operator": "GT",
"value": "value123"
},
{
…

chaithra
- 11
- 1