見出し画像

2024/04/22 20口予想 AIモデル

import numpy as np

# Define a function to split each three-digit number into its constituent digits
def split_number(number):
    return [int(d) for d in str(number).zfill(3)]

# Apply the function to the top 20 numbers and flatten the list
split_digits = np.unique([digit for number in top_20_numbers_recent.index for digit in split_number(number)])

# Formulate combinations of 20 unique three-digit predictions using the most frequent digits
# Since this can generate a huge number of combinations, we'll randomly pick 20 combinations for this exercise
np.random.seed(0)  # for reproducibility
predicted_combinations = np.random.choice(split_digits, size=(20, 3), replace=True)
predicted_combinations = ['{}-{}-{}'.format(*digits) for digits in predicted_combinations]

predicted_combinations


ここから先は

100字

¥ 500

この記事が気に入ったらサポートをしてみませんか?