Skip to content

Commit

Permalink
update installation in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hftsoi committed Oct 30, 2024
1 parent 1b90c81 commit bd9d52f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ With Python>=3.9
```
pip install symbolfit
```
Upon first installation, run
```
python3 -m pysr install
```

## Getting Started
To run an example fit (or ```python fit_example.py```):
Expand Down
5 changes: 4 additions & 1 deletion symbolfit/symbolfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def fit(

pysr_model.fit(X, Y, weights = loss_weights.flatten())

print('\n\n\n\n')
print('\n')

# Get essential info from the PySR output file (hall_.pkl),
# and save to a df for later processing/refit.
Expand All @@ -217,6 +217,8 @@ def fit(
func_candidates = simplify_pkl(pysr_pkl = 'pysr_model_temp.pkl',
x = X
)

print('\n')


# The constants in the fitted functions from PySR do not have uncert. estimation,
Expand Down Expand Up @@ -723,6 +725,7 @@ def get_val_err(param_str):
correlations.append(correlation)
confidence_intervals.append(ci)


func_candidates['Parameters: (best-fit, +1, -1)'] = refitted_params
func_candidates['Correlation'] = correlations
func_candidates['Confidence interval'] = confidence_intervals
Expand Down

0 comments on commit bd9d52f

Please sign in to comment.