refactor: rename library from optimize to optimizer

This commit is contained in:
Manuel Raimann
2026-01-30 18:08:13 +01:00
parent 12d572025f
commit 530faba61c
12 changed files with 76 additions and 76 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
//! Async integration tests for the optimize library.
//! Async integration tests for the optimizer library.
//!
//! These tests are only compiled when the `async` feature is enabled.
#![cfg(feature = "async")]
use optimize::{Direction, RandomSampler, Study, TpeError, TpeSampler};
use optimizer::{Direction, RandomSampler, Study, TpeError, TpeSampler};
#[tokio::test]
async fn test_optimize_async_basic() {
+4 -4
View File
@@ -1,6 +1,6 @@
//! Integration tests for the optimize library.
//! Integration tests for the optimizer library.
use optimize::{Direction, RandomSampler, Study, TpeError, TpeSampler, Trial};
use optimizer::{Direction, RandomSampler, Study, TpeError, TpeSampler, Trial};
// =============================================================================
// Test: optimize simple quadratic function with TPE, finds near-optimal
@@ -671,7 +671,7 @@ fn test_study_direction() {
#[test]
fn test_trial_state() {
use optimize::TrialState;
use optimizer::TrialState;
let trial = Trial::new(0);
assert_eq!(trial.state(), TrialState::Running);
@@ -863,7 +863,7 @@ fn test_trial_debug_format() {
#[test]
fn test_tpe_sampler_builder_default_trait() {
use optimize::TpeSamplerBuilder;
use optimizer::TpeSamplerBuilder;
let builder = TpeSamplerBuilder::default();
let sampler = builder.build();