eon.amsel_search¶
Saddle-search starts from amsel for [amsel] displacement = direction_cover.
amsel.select_active_atoms picks the atoms. amsel.next_search_start
plans each start from the state’s search records (:mod:eon.amsel_records):
it rebuilds the direction cover of the state from what every earlier search
ended on and returns the best free arm with its push over all atoms. The
records are a readcon-db corpus in the state directory and the only thing the
plan depends on besides the state and the seed, so a server that stops and
starts again plans the same starts, and so do several clients whose results
are registered in work-unit order.
A state with no free active atom has no start from amsel and is searched with
the [Saddle Search] displacement like any other. A cell without a defect
is one, such as the crystal a vacancy and an interstitial leave when they
recombine. The reason is written once as a record of the state, and the
state does not ask amsel again.
So is a state whose cover has no arm left: every arm is recorded or out.
Module Contents¶
Classes¶
The ordered (atom, direction) starts of one state. |
Functions¶
Record what an amsel search of |
Data¶
API¶
- eon.amsel_search.logger¶
‘getLogger(…)’
- class eon.amsel_search.AmselSearch(state: Any, reactant: Any, config: Any)[source]¶
The ordered (atom, direction) starts of one state.
Initialization
- fallback_reason() str | None[source]¶
Why this state takes the eOn displacement, or None when it does not.
- confidence() float | None[source]¶
Confidence of the state from its search records, or None.
amsel.search_confidencerebuilds the direction cover from the records and returns one minus the largest posterior probability, over the active atoms, that a missed exit carries more than[amsel] relevant_rate_shareof the escape rate. A state with no search scores close to zero from the estimator itself.None when amsel has no cover for the state: no free atom of it is active, so it has no search record to score.
- make_displacement(wuid: int | None = None) tuple[Any, numpy.ndarray] | None[source]¶
The displaced structure and the unit mode of the next start.
wuidis the work unit the start is for. When that work unit already has a start on record and no result, the recorded start is returned in place of a new one.None when amsel has no start for this state. amsel plans the start from the state’s search records: the direction cover is rebuilt from them in work-unit order and asked for its best free arm. A start is taken when it is handed out, so a search that fails or is lost has used its arm. The push is the seed of the arm over all atoms, scaled to
displace_magnitude. :meth:hand_outrecords the start once the job has a work-unit id.
- eon.amsel_search.register_search(state: Any, result: Any, finds_before: dict) bool[source]¶
Record what an amsel search of
stateended on.finds_beforeisstate.get_proc_own_search_count()taken before the result was registered. The process whose count the result raised is the one the search landed on, and the search isconnected. A result that raised none landed on no process of the state: its budget ran out, or it failed, or the client found a connected saddle that eOn left off the table. That last one isconnectedtoo, withoff_tableset, no process and no rate: the direction led to a saddle, and the saddle is no exit of the table. The record keeps the active atoms of the structure the search ended on, and names the directory of its files when eOn was told to keep them. False when the work unit has no start in the state’s records.