<commit_before># Copyright (c) <NAME>, <NAME>, and ZOZO Technologies, Inc. All rights reserved.
# Licensed under the Apache 2.0 License.

"""Off-Policy Estimators for Continuous Actions."""
from abc import ABCMeta, abstractmethod
from dataclasses import dataclass
from typing import Dict, Optional

import numpy as np
from sklearn.utils import check_scalar

from ..utils import (
    estimate_confidence_interval_by_bootstrap,
    check_continuous_ope_inputs,
)

# kernel functions
# reference: https://en.wikipedia.org/wiki/Kernel_(statistics)
def triangular_kernel(u: np.ndarray) -> np.ndarray:<commit_msg>flake8<commit_after># Copyright (c) <NAME>, <NAME>, and ZOZO Technologies, Inc. All rights reserved.
# Licensed under the Apache 2.0 License.

"""Off-Policy Estimators for Continuous Actions."""
from abc import ABCMeta, abstractmethod
from dataclasses import dataclass
from typing import Dict, Optional

import numpy as np
from sklearn.utils import check_scalar

from ..utils import (
    estimate_confidence_interval_by_bootstrap,
    check_continuous_ope_inputs,
)

# kernel functions, reference: https://en.wikipedia.org/wiki/Kernel_(statistics)


def triangular_kernel(u: np.ndarray) -> np.ndarray:
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.004132231404958678, 'mean_word_length': 5.441489361702128, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3845936', 'n_tokens_mistral': 364, 'n_tokens_neox': 348, 'n_words': 115}