算法
farell
失业中。。。。。。
展开
-
DFT
""" Train a neural network to implement the discrete Fourier transform """ from keras.models import Sequential from keras.layers import Dense import numpy as np import matplotlib.pyplot as plt N = 32 batch = 10000 # Generate random input data and desire.原创 2021-03-26 14:25:38 · 138 阅读 · 1 评论 -
查找序列里最长的近似等差数列
查找序列里最长的近似等差数列 def find_longest2(array,precision): array.sort() print(array) i = 0 arr_length = len(array) total_arr = [] while i < arr_length-1: j = i+1 candidate_arr = [] candidate_arr.append(array[i])原创 2021-03-26 10:35:24 · 168 阅读 · 0 评论