Skip to content

wren17/uv_update

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kernel_econ_alignment

Setup

Use uv to install uv. Then install the required packages with:

  uv sync
  • Finally, in VS Code you can activate the default environment with >Python: Select Interpreter to be the .venv local to the directory
  • If the debugger isn't working in that case, sometimes setting the vscode terminal.integrated.shellIntegration.enabled: true in the settings can help
  • Outside of vscode, you will need to activate .venv in your terminal

Example Usage

The individual files support CLI arguments. To pick specific points rather than the linspace grid, pass in --train_points_list as below

python neoclassical_growth_matern.py
python neoclassical_growth_matern.py --train_points=5
python neoclassical_growth_matern.py --rho=5.0
python neoclassical_growth_matern.py --train_points_list="[0.0,2.0,5.0,10.0,20.0]"
python neoclassical_growth_matern.py --train_points=20 --train_T=10.0 --test_T=10.0 --k_0=0.5

These functions can also be imported and called directly, for example,

from neoclassical_growth_matern import neoclassical_growth_matern
sol = neoclassical_growth_matern(rho=10.0)
print(sol["c_rel_error"].mean())

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.6%
  • Other 1.4%