Skip to content

Commit

Permalink
adds by argument to search_model; increases version
Browse files Browse the repository at this point in the history
  • Loading branch information
sadit committed May 20, 2021
1 parent 480600c commit 5c49742
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SearchModels"
uuid = "0e966ebe-b704-4a65-8279-db954bfe5da0"
authors = ["Eric S. Tellez"]
version = "0.2.2"
version = "0.2.3"

[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Coverage](https://codecov.io/gh/sadit/SearchModels.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/sadit/SearchModels.jl)


Provides a generic method for minimizing model errors using stochastic search, which is often used whenever the problem has no concept of derivative. This kind of problems rely on large exploration of combinatorial spaces based on error function.
Provides a generic tool for minimizing model errors using stochastic search, which is often used whenever the problem has no concept of derivative. This kind of problems rely on large exploration of combinatorial spaces based on error function.

SearchModels rely on basic exploration functions that can be specified for many applications.

Expand Down
5 changes: 3 additions & 2 deletions src/search.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ function search_models(
maxiters=maxiters,
tol=tol,
verbose=verbose
)
),
by=identity
)
ConfigType = eltype(space)
population = Pair{ConfigType,Any}[]
Expand Down Expand Up @@ -267,7 +268,7 @@ function search_models(
return population
end

curr = population[end].second
curr = by(population[end].second)
if abs(curr - prev) <= params.tol
verbose && println("SearchModels> stop by convergence error=$curr, tol=$(params.tol)")
return population
Expand Down

2 comments on commit 5c49742

@sadit
Copy link
Owner Author

@sadit sadit commented on 5c49742 May 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/37207

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.3 -m "<description of version>" 5c49742fb3fa8781baf87284935290bf05704c87
git push origin v0.2.3

Please sign in to comment.