Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
58 views

KL divergence between Normal Inverse Gaussian distributions in JAX/ TF

I want to write a Python script which approximates the KL divergence between NIG distributions, as parameterized in tensorflow. To do so, I want to use the chain rule for KL divergences and need to ...
Dan Leonte's user avatar
0 votes
1 answer
205 views

Test Data parameterization in TOSCA

I have a Test case in TOSCA. The Test is to add 10 products to cart in one execution. In the next run, I need to run the same test with different 10 different products and so on. I have a total of 5k ...
SAJ's user avatar
  • 71
0 votes
0 answers
27 views

Programmatically Searching Multiple Columns for Value using Psycopg2

I'm working on a full-stack web project to database native plants in my area, and I'm using PostgreSQL and Python on my backend. An important part of the tool is the ability to filter plants using ...
user26914090's user avatar
0 votes
0 answers
53 views

I want to parametrize my pipeline.yaml file but Ploomber can not read my env.yaml file

I use poetry.It's in a directory. Then a subdirectory(named "src") were created and Ploomber worked normal in this subdirectory loading correct its files. But when I created a second ...
Dobromir Chankov's user avatar
0 votes
0 answers
11 views

Algorithm for estimating distortion of uvs from mesh parametrization

I have a triangular mesh with uvs generated from either a parametrization algorithm or through planar, spherical, etc projection. I would like to estimate the distortion or stretch of the said uvs. ...
Lenny White's user avatar
0 votes
1 answer
75 views

setup function in class doesn't work as expected while passing parameterized values

I have no idea why modifying the code mentioned here to the following doesn't work? The variables are not accessible inside the tests and setup is being invoked before every test despite the scope ...
yowaf21832's user avatar
0 votes
2 answers
61 views

Indirect parametrization to multiple fixtures without increasing test scenarios

I have three fixtures fixture_1, fixture_2, fixture_3. All three of these fixtures have dictionaries, and return a value based on the key provided. I want to use indirect parametrization to output ...
HexBlunder's user avatar
1 vote
0 answers
63 views

How does Forced Parameterization impact queries when using SET options such as quoted identifier?

When using Simple Parameterization in the AdventureWorks database, you can execute the following query: USE [AdventureWorks2022] GO SET QUOTED_IDENTIFIER OFF SELECT "True" FROM Person....
Ben's user avatar
  • 11
0 votes
1 answer
317 views

How to pass a CASE statement as a Snowflake query binding

I am trying to pass a CASE statement similar to the one below as a column in a SELECT statement on a Snowflake query. I am doing this by creating bindings using SqlKata in a .NET application and ...
BenTen's user avatar
  • 503
0 votes
1 answer
64 views

Tuple problem with parameterized SQLite query

I'm working on a telethon-based telegram chatbot that can query a customer db given a last name in the following format: /search thompson, but am having some trouble using the fill function to keep ...
Marcatectura's user avatar
  • 1,695
0 votes
1 answer
27 views

How to make the second parameterized variable in pytest a function of the first?

I have a pytest test that looks like this: @pytest.mark.parametrize('type', ['a', 'b', 'c']) @pytest.mark.parametrize('val', list(range(0, VAR_THAT_IS_FUNCTION_OF_TYPE))) def test(type, val): Where ...
u2j4's user avatar
  • 15
0 votes
0 answers
31 views

Parameterized Function for lcmm model

I want to write a function "lcga0" that does the same as "demomodel" parameterizing the dependent variable, because I want to run the model 2x for 2 different dependent variables. ...
Hanna's user avatar
  • 1
0 votes
1 answer
36 views

How to run the tests in same order given in pytest parametrize

I have test case which I want to execute with multiple test data. Using CSV to provide data and use same data for parameterization. But when I execute parameterize test case, the sequence of test data ...
Vaani P's user avatar
0 votes
0 answers
109 views

Pytest - execute test case only if previous test case fails

I have two test cases test_A(a,b,c) and test_B(a,b,c) in a python file. I use parameterization ( metafunc.parametrize("a,b,c",[(a1,a2,a3),....(y1,y2,y3)]) to pass 6 set of parameters ...
yowaf21832's user avatar
3 votes
2 answers
468 views

Passing functions as a parameter in pytest

I need to pass function as arguments in pytest parametrization. and need to call those functions inside test function. Is there any way to do it without using eval? I have fixtures defined in conftest....
suryadevi's user avatar

15 30 50 per page
1
2 3 4 5
11