You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Refactor nthreads parameter handling in fit.jl
Removed default value for nthreads and adjusted related logic.
* Remove nthreads parameter from drop_singletons! function
* Update default double_precision based on method
Change default value of double_precision based on method.
* Bump version to 1.13.0 and update FixedEffects compatibility
Updated version and dependency compatibility for FixedEffects.
* Remove deprecated nthreads argument and update solver
Updated fit.jl to remove deprecated nthreads argument and adjust AbstractFixedEffectSolver instantiation.
* Update multi-threading explanation in README
Clarified the usage of multi-threading in FixedEffectModels.
* Refactor fit function to remove nthreads parameter
Removed 'nthreads' from the fit function call parameters.
* update benchmarks
Copy file name to clipboardExpand all lines: README.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,8 +119,7 @@ Finally, you can use [RegressionTables.jl](https://github.com/jmboehm/Regression
119
119
120
120
## Performances
121
121
122
-
### MultiThreads
123
-
`FixedEffectModels` is multi-threaded. Use the option `nthreads` to select the number of threads to use in the estimation (defaults to `Threads.nthreads()`).
122
+
`FixedEffectModels` is multi-threaded by default. Launch Julia with multiple threads to benefit from the speedup. You can verify how many threads are available in your session with `Threads.nthreads()`.
124
123
125
124
### GPUs
126
125
The package has an experimental support for GPUs. This can make the package 2x-5x faster for complicated problems.
Copy file name to clipboardExpand all lines: src/fit.jl
+9-13Lines changed: 9 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,6 @@ Estimate a linear model with high dimensional categorical variables / instrument
11
11
* `weights::Union{Nothing, Symbol}` A symbol to refer to a columns for weights
12
12
* `save::Symbol`: Should residuals and eventual estimated fixed effects saved in a dataframe? Default to `:none` Use `save = :residuals` to only save residuals, `save = :fe` to only save fixed effects, `save = :all` for both. Once saved, they can then be accessed using `residuals(m)` or `fe(m)` where `m` is the object returned by the estimation. The returned DataFrame is automatically aligned with the original DataFrame.
13
13
* `method::Symbol`: A symbol for the method. Default is :cpu. Alternatively, use :CUDA or :Metal (in this case, you need to import the respective package before importing FixedEffectModels)
14
-
* `nthreads::Integer` Number of threads to use in the estimation. If `method = :cpu`, defaults to `Threads.nthreads()`. Otherwise, defaults to 256.
15
14
* `double_precision::Bool`: Should the demeaning operation use Float64 rather than Float32? Default to true if `method =:cpu' and false if `method = :CUDA` or `method = :Metal`.
16
15
* `tol::Real` Tolerance. Default to 1e-6.
17
16
* `maxiter::Integer = 10000`: Maximum number of iterations
0 commit comments