Best Online AI Tools

DALL-E (Text to image converter)
Text completion
Image enlarger
Auto Regex
Chat with AI
AI-powered Grammar Checker

➡️ OpenAI Tips

OpenAI Tips

GPT-3 Engines

  • davinci (most expensive)
  • curie
  • babbage
  • ada (cheapest and fastest)


Ada is extremely fast and capable when it comes to tasks where creativity is more important than precision.


Temperature = 0 (precise answer)

Temperature = 1 (random, creativity)


1 token ~= 4 chars in English

100 tokens ~= 75 words

Keras Project Example

Download pima indian diabetes data file first.

Python code:

from keras.models import Sequential
from keras.layers import Dense
import numpy
# fix random seed for reproducibility
# load pima indians dataset
dataset = numpy.loadtxt("pima-indians-diabetes.csv", delimiter=",")
# split into input (X) and output (Y) variables
X = dataset[:,0:8] #input data - except last column
Y = dataset[:,8] # last column is real results
# create model
model = Sequential()
model.add(Dense(12, input_dim=8, activation='relu'))
model.add(Dense(8, activation='relu'))
model.add(Dense(1, activation='sigmoid'))
# Compile model
model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
# Fit the model - train, Y, epochs=150, batch_size=10, verbose=2)

# evaluate the model
#scores = model.evaluate(X, Y)
#print("\n%s: %.2f%%" % (model.metrics_names[1], scores[1]*100))

# calculate predictions
predictions = model.predict(X)
rounded = [round(x[0],2) for x in predictions]

Tested on: python-3.6.3-amd64, Keras API 2

RGB to Grayscale

The lightness method averages the most prominent and least prominent colors: (max(R, G, B) + min(R, G, B)) / 2.
The lightness method tends to reduce contrast.

The average method simply averages the values: (R + G + B) / 3.

The luminosity method is a more sophisticated version of the average method. It also averages the values, but it forms a weighted average to account for human perception. We’re more sensitive to green than other colors, so green is weighted most heavily. The formula for luminosity is 0.21 R + 0.72 G + 0.07 B.
The luminosity method works best overall.