Skip to main content

Hyperparameters

Struct Hyperparameters 

Source
pub struct Hyperparameters {
Show 58 fields pub concentration_alpha: f64, pub decay_lambda: f64, pub claude_categories: Vec<String>, pub context_window_chars: usize, pub short_text_word_count: usize, pub repeated_ngram_min_n: usize, pub repeated_ngram_max_n: usize, pub repeated_ngram_min_count: usize, pub slop_word_penalty: i32, pub slop_phrase_penalty: i32, pub structural_bold_header_min: usize, pub structural_bold_header_penalty: i32, pub structural_bullet_run_min: usize, pub structural_bullet_run_penalty: i32, pub triadic_record_cap: usize, pub triadic_penalty: i32, pub triadic_advice_min: usize, pub tone_penalty: i32, pub sentence_opener_penalty: i32, pub weasel_penalty: i32, pub ai_disclosure_penalty: i32, pub placeholder_penalty: i32, pub rhythm_min_sentences: usize, pub rhythm_cv_threshold: f64, pub rhythm_penalty: i32, pub em_dash_words_basis: f64, pub em_dash_density_threshold: f64, pub em_dash_penalty: i32, pub contrast_record_cap: usize, pub contrast_penalty: i32, pub contrast_advice_min: usize, pub setup_resolution_record_cap: usize, pub setup_resolution_penalty: i32, pub colon_words_basis: f64, pub colon_density_threshold: f64, pub colon_density_penalty: i32, pub pithy_max_sentence_words: usize, pub pithy_record_cap: usize, pub pithy_penalty: i32, pub bullet_density_threshold: f64, pub bullet_density_penalty: i32, pub blockquote_min_lines: usize, pub blockquote_free_lines: usize, pub blockquote_cap: usize, pub blockquote_penalty_step: i32, pub bold_bullet_run_min: usize, pub bold_bullet_run_penalty: i32, pub horizontal_rule_min: usize, pub horizontal_rule_penalty: i32, pub phrase_reuse_record_cap: usize, pub phrase_reuse_penalty: i32, pub density_words_basis: f64, pub score_min: i32, pub score_max: i32, pub band_clean_min: i32, pub band_light_min: i32, pub band_moderate_min: i32, pub band_heavy_min: i32,
}

Fields§

§concentration_alpha: f64§decay_lambda: f64§claude_categories: Vec<String>§context_window_chars: usize§short_text_word_count: usize§repeated_ngram_min_n: usize§repeated_ngram_max_n: usize§repeated_ngram_min_count: usize§slop_word_penalty: i32§slop_phrase_penalty: i32§structural_bold_header_min: usize§structural_bold_header_penalty: i32§structural_bullet_run_min: usize§structural_bullet_run_penalty: i32§triadic_record_cap: usize§triadic_penalty: i32§triadic_advice_min: usize§tone_penalty: i32§sentence_opener_penalty: i32§weasel_penalty: i32§ai_disclosure_penalty: i32§placeholder_penalty: i32§rhythm_min_sentences: usize§rhythm_cv_threshold: f64§rhythm_penalty: i32§em_dash_words_basis: f64§em_dash_density_threshold: f64§em_dash_penalty: i32§contrast_record_cap: usize§contrast_penalty: i32§contrast_advice_min: usize§setup_resolution_record_cap: usize§setup_resolution_penalty: i32§colon_words_basis: f64§colon_density_threshold: f64§colon_density_penalty: i32§pithy_max_sentence_words: usize§pithy_record_cap: usize§pithy_penalty: i32§bullet_density_threshold: f64§bullet_density_penalty: i32§blockquote_min_lines: usize§blockquote_free_lines: usize§blockquote_cap: usize§blockquote_penalty_step: i32§bold_bullet_run_min: usize§bold_bullet_run_penalty: i32§horizontal_rule_min: usize§horizontal_rule_penalty: i32§phrase_reuse_record_cap: usize§phrase_reuse_penalty: i32§density_words_basis: f64§score_min: i32§score_max: i32§band_clean_min: i32§band_light_min: i32§band_moderate_min: i32§band_heavy_min: i32

Implementations§

Trait Implementations§

Source§

impl Clone for Hyperparameters

Source§

fn clone(&self) -> Hyperparameters

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Hyperparameters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Hyperparameters

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Hyperparameters

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Hyperparameters

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.