Training CodeTensorflowLite
Training CodeTensorflowLite
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
# Expanded dataset
data = np.array([
[30, 70], [25, 50], [20, 90], [35, 40], [28, 65],
[22, 75], [32, 60], [26, 80], [29, 55], [31, 85],
[24, 45], [27, 70], [33, 50], [23, 85], [34, 65]
])
labels = np.array([80, 50, 90, 20, 70, 75, 60, 85, 55, 95, 45, 70, 50, 90, 65]) /
100.0