AI & ML Calculators
LLM costs, neural networks, GPU memory, training metrics, classification scores and generative AI.
280 of 280 available now
AI Business
AI Business hub →- GPU Cost EstimatorEstimate the total cloud GPU cost for a training or inference workload.
- AI Training Budget CalculatorEstimate the total budget required to train an AI model from compute and data costs.
- AI Inference Budget CalculatorEstimate the ongoing budget required to serve AI model inference at scale.
- AI Deployment Cost CalculatorEstimate the total cost of deploying an AI model to production infrastructure.
- Cloud GPU Monthly Cost CalculatorCalculate the monthly cost of running cloud GPU instances continuously or on demand.
- Carbon Emission CalculatorEstimate the carbon emissions produced by training or running an AI model.
- Energy Consumption CalculatorEstimate the electricity consumption of training or serving an AI model.
- Cost per 1M Tokens CalculatorCalculate the normalized cost per one million tokens across LLM providers.
- Cost per User CalculatorCalculate the average AI infrastructure cost incurred per active user.
- Cost per Query CalculatorCalculate the average cost incurred per query or API call to an AI model.
AI Numerical
AI Numerical hub →- Softmax CalculatorConvert a vector of logits into a probability distribution using the softmax function.
- Sigmoid CalculatorCompute the sigmoid activation function output for a given input value.
- ReLU CalculatorApply the ReLU activation function to an input value or vector.
- Leaky ReLU CalculatorCompute the Leaky ReLU activation output with a configurable negative slope.
- GELU CalculatorCompute the Gaussian Error Linear Unit activation used in transformer models.
- ELU CalculatorCompute the Exponential Linear Unit activation function for a given input.
- Tanh CalculatorCompute the hyperbolic tangent activation function output for a given input.
- Swish CalculatorCompute the Swish (SiLU) activation function output for a given input value.
- Mish CalculatorCompute the Mish activation function output, a smooth self-regularized non-monotonic function.
- Softplus CalculatorCompute the Softplus activation function, a smooth approximation of ReLU.
AI, ML & Data Science
All 100 AI, ML & Data Science calculators →- Precision And Recall CalculatorWork out precision and recall instantly with clear inputs, formula shown and shareable results.
- AIC And BIC CalculatorWork out aic and bic instantly with clear inputs, formula shown and shareable results.
- Word Error Rate CalculatorWork out word error rate instantly with clear inputs, formula shown and shareable results.
- Character Error Rate CalculatorWork out character error rate instantly with clear inputs, formula shown and shareable results.
- IoU (Object Detection) CalculatorWork out iou (object detection) instantly with clear inputs, formula shown and shareable results.
- mAP (Mean Average Precision) CalculatorWork out map (mean average precision) instantly with clear inputs, formula shown and shareable results.
- Silhouette Score CalculatorWork out silhouette score instantly with clear inputs, formula shown and shareable results.
- Davies Bouldin Index CalculatorWork out davies bouldin index instantly with clear inputs, formula shown and shareable results.
- Adjusted Rand Index CalculatorWork out adjusted rand index instantly with clear inputs, formula shown and shareable results.
- Feature Importance Share CalculatorWork out feature importance share instantly with clear inputs, formula shown and shareable results.
- Correlation Matrix Threshold CalculatorWork out correlation matrix threshold instantly with clear inputs, formula shown and shareable results.
- Resampling Requirement CalculatorWork out resampling requirement instantly with clear inputs, formula shown and shareable results.
Classification Metrics
Classification Metrics hub →- Accuracy CalculatorCalculate classification accuracy from correct predictions and total samples.
- Precision CalculatorCalculate precision from true positives and false positives in a classification model.
- Recall CalculatorCalculate recall (sensitivity) from true positives and false negatives.
- F1 Score CalculatorCalculate the F1 score, the harmonic mean of precision and recall.
- F-beta Score CalculatorCalculate the F-beta score with a configurable weight between precision and recall.
- MCC CalculatorCalculate the Matthews Correlation Coefficient for binary classification quality.
- ROC AUC CalculatorCalculate the area under the ROC curve to evaluate classifier performance.
- PR AUC CalculatorCalculate the area under the precision-recall curve for imbalanced classification.
- Cohen Kappa CalculatorCalculate Cohen's Kappa to measure inter-rater agreement corrected for chance.
- Balanced Accuracy CalculatorCalculate balanced accuracy to fairly evaluate models on imbalanced datasets.
Confusion Matrix
Confusion Matrix hub →- True Positive CalculatorCalculate the true positive count from a confusion matrix and classification results.
- False Positive CalculatorCalculate the false positive count from a confusion matrix and classification results.
- True Negative CalculatorCalculate the true negative count from a confusion matrix and classification results.
- False Negative CalculatorCalculate the false negative count from a confusion matrix and classification results.
- Specificity CalculatorCalculate specificity, the true negative rate, from a confusion matrix.
- Sensitivity CalculatorCalculate sensitivity, the true positive rate, from a confusion matrix.
- NPV CalculatorCalculate the negative predictive value from a confusion matrix.
- FPR CalculatorCalculate the false positive rate from a confusion matrix and classification results.
- FNR CalculatorCalculate the false negative rate from a confusion matrix and classification results.
- Diagnostic Odds Ratio CalculatorCalculate the diagnostic odds ratio to summarize a classifier's discriminative power.
Deep Learning
Deep Learning hub →- Batch Size CalculatorEstimate an optimal training batch size based on dataset size and memory limits.
- Gradient Accumulation CalculatorCalculate the effective batch size achieved through gradient accumulation steps.
- Epoch CalculatorCalculate the number of training epochs needed given dataset size and step budget.
- Steps per Epoch CalculatorCalculate the number of training steps in one epoch from dataset and batch size.
- Learning Rate Scheduler CalculatorCalculate the learning rate at a given training step for common LR schedules.
- Warmup Steps CalculatorCalculate the number of learning rate warmup steps for a training run.
- Weight Decay CalculatorCalculate the effective weight decay applied during regularized training.
- Dropout Probability CalculatorCalculate the expected number of active neurons given a dropout probability.
- Gradient Clipping CalculatorCalculate the clipped gradient norm given a maximum gradient clipping threshold.
- Label Smoothing CalculatorCalculate smoothed label values used to regularize classification training targets.
GPU & Training
GPU & Training hub →- GPU Memory CalculatorEstimate the GPU memory required to train or run a given model architecture.
- VRAM Usage CalculatorEstimate the VRAM consumed by model weights, activations, and optimizer states.
- Tensor Size CalculatorCalculate the memory footprint of a tensor from its shape and data type.
- FLOPs CalculatorCalculate the floating point operations required for a model's forward pass.
- TFLOPs CalculatorCalculate the teraFLOPs throughput required or delivered for a training workload.
- Training Time CalculatorEstimate total model training time from dataset size, batch size, and hardware speed.
- Inference Time CalculatorEstimate model inference latency per request based on hardware throughput.
- Samples/sec CalculatorCalculate training throughput in samples processed per second.
- Tokens/sec CalculatorCalculate LLM throughput in tokens generated or processed per second.
- GPU Utilization CalculatorCalculate GPU utilization percentage from actual versus theoretical compute throughput.
Generative AI
Generative AI hub →- Stable Diffusion Cost CalculatorEstimate the compute cost of generating images with a Stable Diffusion model.
- Image Generation Cost CalculatorCalculate the total API cost of generating a batch of AI images.
- Video Generation Cost CalculatorCalculate the API cost of generating AI video clips based on duration and resolution.
- Speech-to-Text Cost CalculatorCalculate the API cost of transcribing audio using a speech-to-text model.
- Text-to-Speech Cost CalculatorCalculate the API cost of generating speech audio from text.
- OCR Cost CalculatorCalculate the API cost of running optical character recognition on documents or images.
- Whisper Cost CalculatorCalculate the API cost of transcribing audio using OpenAI's Whisper model.
- Vision Token Cost CalculatorCalculate the token cost of sending images to a multimodal vision-language model.
- Multimodal Cost CalculatorCalculate combined API costs for text, image, and audio inputs in a multimodal request.
- Fine-tuning Cost CalculatorEstimate the total cost of fine-tuning an LLM on a custom training dataset.
LLM
LLM hub →- Token CalculatorEstimate how many tokens a piece of text will consume in an LLM prompt.
- Prompt Token CounterCount the exact number of tokens used by a prompt before sending it to an LLM.
- Completion Token CounterEstimate the number of tokens an LLM completion or response will generate.
- Context Window UsageCalculate what percentage of an LLM's context window your prompt and history consume.
- Prompt Cost CalculatorCalculate the dollar cost of an LLM prompt based on token count and model pricing.
- Completion Cost CalculatorCalculate the dollar cost of an LLM completion based on output tokens and pricing.
- Total API Cost CalculatorCombine prompt and completion costs to estimate the total cost of an LLM API call.
- Multi-model Cost ComparisonCompare API costs across multiple LLM providers and models side by side.
- Context Overflow CalculatorDetermine whether your prompt and history exceed a model's maximum context window.
- Token Compression CalculatorEstimate the token savings achieved by compressing or summarizing prompt text.
LLM Engineering
LLM Engineering hub →- KV Cache Memory CalculatorCalculate the memory required for the key-value cache during LLM inference.
- Context Memory CalculatorCalculate the memory footprint required to hold a given LLM context length.
- Embedding Dimension CalculatorEstimate an appropriate embedding dimension size for a given vocabulary or dataset.
- Vector Storage CalculatorCalculate the storage size required for a set of vector embeddings.
- Chunk Size CalculatorCalculate the number of chunks produced when splitting a document for RAG retrieval.
- Chunk Overlap CalculatorCalculate effective chunk stride and overlap ratio for document splitting in RAG.
- Retrieval Recall CalculatorCalculate recall@k for a retrieval system used in RAG pipelines.
- ANN Index Size CalculatorEstimate the memory size of an approximate nearest neighbor search index.
- RAG Storage CalculatorEstimate total storage requirements for a retrieval-augmented generation pipeline.
- Embedding Cost CalculatorCalculate the API cost of generating embeddings for a given amount of text.
Miscellaneous AI
Miscellaneous AI hub →- Random Seed GeneratorGenerate a random seed value for reproducible machine learning experiments.
- Dataset Split CalculatorCalculate train, validation, and test set sizes from a dataset split ratio.
- Stratified Split CalculatorCalculate class-balanced train and test set sizes using stratified sampling.
- Class Imbalance Ratio CalculatorCalculate the imbalance ratio between majority and minority classes in a dataset.
- Oversampling Ratio CalculatorCalculate the oversampling ratio needed to balance minority classes in a dataset.
- Undersampling Ratio CalculatorCalculate the undersampling ratio needed to balance majority classes in a dataset.
- Sequence Padding CalculatorCalculate the padding length needed to align sequences to a fixed model input length.
- Sequence Truncation CalculatorCalculate how much of a sequence will be truncated to fit a maximum input length.
- Tokenizer Comparison CalculatorCompare how different tokenizers split the same text into tokens.
- Vocabulary Size CalculatorEstimate the vocabulary size needed for a tokenizer given corpus statistics.
Model Evaluation
Model Evaluation hub →- BLEU Score CalculatorCalculate the BLEU score to evaluate machine translation or text generation quality.
- ROUGE Score CalculatorCalculate the ROUGE score to evaluate text summarization quality against references.
- METEOR Score CalculatorCalculate the METEOR score to evaluate translation quality with synonym matching.
- BERTScore CalculatorCalculate BERTScore, a contextual embedding-based metric for text similarity evaluation.
- CIDEr Score CalculatorCalculate the CIDEr score used to evaluate image captioning model outputs.
- SPICE Score CalculatorCalculate the SPICE score for evaluating semantic content in image captions.
- IoU CalculatorCalculate the Intersection over Union score for object detection bounding boxes.
- Dice Coefficient CalculatorCalculate the Dice coefficient to evaluate overlap in image segmentation tasks.
- mAP CalculatorCalculate mean Average Precision for evaluating object detection model performance.
- NDCG CalculatorCalculate Normalized Discounted Cumulative Gain to evaluate ranking model quality.
Neural Networks
All 15 Neural Networks calculators →- Parameter Count CalculatorCalculate the total number of parameters in a neural network architecture.
- Trainable Parameters CalculatorCalculate the number of trainable parameters in a model with frozen layers.
- Dense Layer Parameters CalculatorCalculate the number of weights and biases in a fully connected dense layer.
- CNN Output Shape CalculatorCalculate the output feature map shape of a convolutional layer given kernel and stride.
- CNN Parameter Count CalculatorCalculate the number of trainable parameters in a convolutional layer.
- Max Pool Output CalculatorCalculate the output feature map size after a max pooling operation.
- Average Pool Output CalculatorCalculate the output feature map size after an average pooling operation.
- ConvTranspose Output CalculatorCalculate the output shape produced by a transposed (deconvolution) layer.
- RNN Parameters CalculatorCalculate the number of trainable parameters in a recurrent neural network layer.
- LSTM Parameters CalculatorCalculate the number of trainable parameters in an LSTM layer.
- GRU Parameters CalculatorCalculate the number of trainable parameters in a GRU layer.
- Transformer Parameters CalculatorEstimate the total parameter count of a transformer model from its architecture config.
Optimization
Optimization hub →- Adam Optimizer Update CalculatorCalculate the parameter update step produced by the Adam optimizer.
- SGD Update CalculatorCalculate the parameter update step produced by stochastic gradient descent.
- RMSProp Update CalculatorCalculate the parameter update step produced by the RMSProp optimizer.
- Momentum Update CalculatorCalculate the parameter update step produced by gradient descent with momentum.
- AdamW Update CalculatorCalculate the parameter update step produced by the AdamW optimizer with decoupled weight decay.
- Cosine Annealing CalculatorCalculate the learning rate at a given step under a cosine annealing schedule.
- Exponential Decay CalculatorCalculate the learning rate at a given step under an exponential decay schedule.
- Polynomial Decay CalculatorCalculate the learning rate at a given step under a polynomial decay schedule.
- One Cycle LR CalculatorCalculate the learning rate at a given step under a one-cycle policy schedule.
- Cyclic Learning Rate CalculatorCalculate the learning rate at a given step under a cyclic learning rate schedule.
Probability
Probability hub →- Cross Entropy CalculatorCalculate the cross-entropy loss between predicted and true probability distributions.
- Binary Cross Entropy CalculatorCalculate the binary cross-entropy loss for binary classification predictions.
- Categorical Cross Entropy CalculatorCalculate categorical cross-entropy loss for multi-class classification tasks.
- KL Divergence CalculatorMeasure the Kullback-Leibler divergence between two probability distributions.
- Jensen-Shannon Divergence CalculatorCalculate the symmetric Jensen-Shannon divergence between two probability distributions.
- Perplexity CalculatorCalculate the perplexity of a language model from its cross-entropy loss.
- Entropy CalculatorCalculate the Shannon entropy of a discrete probability distribution.
- Information Gain CalculatorCalculate the information gain of a feature split used in decision tree models.
- Gini Index CalculatorCalculate the Gini impurity index used for evaluating decision tree splits.
- Log Loss CalculatorCalculate logarithmic loss for probabilistic classification predictions.
Probability & Bayesian AI
Probability & Bayesian AI hub →- Bayes Theorem CalculatorCalculate posterior probability from prior, likelihood, and evidence using Bayes' theorem.
- Naive Bayes Probability CalculatorCalculate class probabilities for a Naive Bayes classifier given feature likelihoods.
- Posterior Probability CalculatorCalculate the posterior probability given a prior distribution and observed evidence.
- Likelihood CalculatorCalculate the likelihood of observed data given a set of model parameters.
- Prior Probability CalculatorCalculate or normalize prior probability values used in Bayesian inference.
Regression
Regression hub →- MAE CalculatorCalculate mean absolute error between predicted and actual values.
- MSE CalculatorCalculate mean squared error between predicted and actual values.
- RMSE CalculatorCalculate root mean squared error between predicted and actual values.
- RMSLE CalculatorCalculate root mean squared logarithmic error for regression predictions.
- MAPE CalculatorCalculate mean absolute percentage error for regression forecast accuracy.
- SMAPE CalculatorCalculate symmetric mean absolute percentage error for forecast accuracy.
- R² Score CalculatorCalculate the R-squared coefficient of determination for a regression model.
- Adjusted R² CalculatorCalculate adjusted R-squared, which penalizes R² for added predictor variables.
- Explained Variance CalculatorCalculate the explained variance score for a regression model's predictions.
- Huber Loss CalculatorCalculate Huber loss, a robust regression loss combining MSE and MAE behavior.
Statistics
Statistics hub →- Mean CalculatorCalculate the arithmetic mean of a dataset used in model feature analysis.
- Median CalculatorCalculate the median value of a dataset used in model feature analysis.
- Mode CalculatorCalculate the most frequent value (mode) in a dataset used for feature analysis.
- Variance CalculatorCalculate the variance of a dataset used to measure feature spread in ML pipelines.
- Standard Deviation CalculatorCalculate the standard deviation of a dataset used for feature normalization.
- Covariance CalculatorCalculate the covariance between two features or variables in a dataset.
- Correlation CalculatorCalculate the Pearson correlation coefficient between two features in a dataset.
- Z-score CalculatorCalculate the z-score of a data point relative to a dataset's mean and standard deviation.
- Confidence Interval CalculatorCalculate a confidence interval around a model metric estimate or sample mean.
- P-value CalculatorCalculate the p-value for a hypothesis test comparing model or experiment results.
Vector Math
Vector Math hub →- Cosine Similarity CalculatorCalculate the cosine similarity between two vectors used in embedding comparisons.
- Euclidean Distance CalculatorCalculate the Euclidean distance between two vectors in n-dimensional space.
- Manhattan Distance CalculatorCalculate the Manhattan (L1) distance between two vectors.
- Minkowski Distance CalculatorCalculate the generalized Minkowski distance between two vectors with a configurable order.
- Dot Product CalculatorCalculate the dot product of two vectors used in embeddings and attention scores.
- Cross Product CalculatorCalculate the cross product of two 3D vectors.
- Matrix Multiplication CalculatorMultiply two matrices and view the resulting matrix, used in neural network layers.
- Matrix Inverse CalculatorCalculate the inverse of a square matrix used in linear algebra operations.
- Matrix Determinant CalculatorCalculate the determinant of a square matrix used in linear algebra operations.
- Eigenvalue CalculatorCalculate the eigenvalues of a square matrix used in dimensionality reduction.