See every shape. Keep the code.

Build neural networks from bricks and read the PyTorch code they become. Brick DNN is a deep-learning lab in the browser, made for courses: students connect layers on a canvas, see the shape of every tensor and the parameters of every layer, and leave with a PyTorch or scikit-learn script they can read. Small and medium models train on a server in Switzerland; the exported code runs anywhere.

Open the editor Pricing

  • Free plan
  • No account needed to build and export
  • Open source, Apache 2.0
  • Hosted in Switzerland, GDPR-compliant
The Brick DNN editor: a palette of layers on the left, a convolutional network on the canvas with the output shape of every layer, and the settings of the selected layer on the right.
A convolutional network for MNIST in the editor. Every layer shows its output shape and number of parameters.

At a glance

What it is
A web application for designing, checking, training and exporting deep-learning models and classical machine-learning models, without writing code first. A model is a graph of layers (“bricks”); Brick DNN infers every tensor shape and works as a PyTorch code generator: it writes a self-contained PyTorch script, or a scikit-learn script for classical models.
Who it is for
Universities and their students and teachers of machine learning and deep learning, researchers who work with tabular or image data, and companies in Europe that need a correct starting point quickly and want to know where their data is.
What it costs
Building, checking and exporting code are free and work without an account. The free plan includes training on the server (1 CPU hour per month, 0.5 GB storage). Paid plans cost €9, €24 or €69 per month, VAT included.
Where the data lives
In Europe. The application, uploaded files and training results are on a server in Switzerland, and trainings run there. Accounts and project metadata are in a database on the same server. No cookies, no tracking. Data in Europe has the details.
Source code
Open source under the Apache 2.0 licence. It also runs on your own server with Docker Compose.

Deep learning for teaching, research and practice

Brick DNN is made for teaching, for research with tabular and image data, and for getting from an architecture sketch to working code.

  • Teaching deep learning

    Students connect layers and see how the shape of the data changes from layer to layer, with plain messages when something does not fit, e.g. Kernel size 7 is larger than the padded input size 4. How data flows steps one sample through the network; the inspector shows how a layer’s parameters add up and its receptive field. For group work, networks can be shared and edited together live.

    “How data flows” in the editor: a card steps one sample through a CNN and shows how max pooling turns 32 × 28 × 28 values into 32 × 14 × 14, below the layers on the canvas.
  • Tabular research data

    Import CSV, Excel, Parquet or JSON files, clean them in recorded steps (missing values, outliers, categories, dates) and check whether the data is ready for training. Compare gradient boosting, support vector machines and Gaussian processes with neural networks on the same fixed train, validation and test split, and explain predictions with Shapley values or permutation importance.

    A preparation of field-trial data in the Data tab: on the left the steps that fill in missing values, clip outliers and encode categories, each with what it did; on the right the prepared table with a distribution in every column header.
  • Image segmentation

    Train a U-Net, or any network that keeps the image size, on a ZIP file of images and masks, or on the built-in Shapes dataset without uploading anything. Each epoch reports mean IoU, Dice and pixel accuracy, and the predicted masks are shown next to the true ones.

    Predictions of a U-Net trained on the built-in Shapes dataset: for each validation image the image, the true mask, the predicted mask and an overlay, with IoU and pixel accuracy.
  • Reproducible code for papers

    Every model exports as a self-contained Python file: an nn.Module with named layers for PyTorch, or a scikit-learn script for classical models and ensembles. The data preparation exports as a pandas script. The code runs without Brick DNN and can be published together with the paper.

    The code dialog with the generated PyTorch module of a small CNN: the layers in __init__ and the forward method, ready to download as a Python file.
  • An AI assistant that builds and trains

    Connect Claude or another MCP client to your account with OAuth. The assistant can build and check networks, prepare data, start trainings and make predictions. You decide whether it may change things or only read, can give it a monthly budget and see each of its actions in a log.

    The agent activity page: the calls an AI assistant made through the MCP server with an API token, such as analysing a network, reading a training run and generating code, each with its result and duration.

How it works

  1. Build

    Drag layers onto the canvas and connect them, or start from an example: MLP, CNN, residual block, U-Net, LSTM, Transformer, gradient boosting or an ensemble. Fields such as in_features are filled in from the incoming tensor.

    A voting ensemble in the builder: one input connected to gradient boosting, a support vector machine and a Gaussian process, combined by a voting classifier.
  2. Train

    Choose demo data, MNIST, Fashion-MNIST, CIFAR-10 or your own CSV or image files. Brick DNN checks beforehand whether network and data fit, then trains on the server with live loss and metric curves, early stopping and an optional hyperparameter search.

    The training panel with a prepared dataset selected and the check “Ready to train: classification into 2 classes from 18 features”.
  3. Export

    Download the PyTorch or scikit-learn script, the trained weights and the prepared data. The code is yours: read it, change it and run it wherever you like.

    The end of a finished run: buttons to download the weights, the preprocessing and the script, or to load the network into the editor.

Features

One tool from the first sketch to a trained and explained deep-learning model.

  • A CNN with a mistake: a Conv2d layer is marked red with the message “Kernel size 16 is larger than the (padded) input size 14”, and the layers after it have no shape.

    Shape inference and checks

    Every layer shows its output shape and parameter count while you build. Mistakes are marked before anything runs, with a message that says what to change.

  • Loss and accuracy per epoch of a small CNN trained on MNIST, for the training and the validation data, under the test accuracy of 98.6 %.

    Training on the server

    A queue, early stopping that keeps the best weights, and loss and metric curves for every epoch while the network learns.

  • The confusion matrix of the CNN on 3,000 validation images of MNIST: true digits in the rows, predicted digits in the columns, almost all on the diagonal.

    Evaluation on held-out data

    Test data measured once after training: accuracy, balanced accuracy, F1 and a confusion matrix; for two classes also ROC and PR curves and a decision threshold you can move.

  • The trials of a random search for a gradient boosting model: learning rate, depth, rows per leaf and class weights of each trial with its cross-validated loss, accuracy and PR AUC; the best trial is highlighted.

    Hyperparameter search

    Random or grid search over learning rate, batch size and optimizer, or over a classical model’s parameters with cross-validation, ranked by the loss or by a metric such as balanced accuracy, ROC AUC, PR AUC, MAE or R².

  • Permutation importance of the gradient boosting model: how much the validation accuracy drops when one feature is shuffled, most for rainfall, then temperature and nitrogen.

    Explanations

    Saliency maps, Grad-CAM and occlusion for images; Shapley values, integrated gradients and permutation importance for tables; the output of every layer for one sample.

  • A network shared by two people: their avatars and a live badge in the toolbar, the layer the other person selected marked with her name, and her question about it in the comments panel.

    Working together

    Share a network with people or with a link, edit it together live, comment on it and go back to earlier versions.

  • Real graphs

    Skip connections (Add), merges (Concat), several inputs and outputs. 24 layer types for MLPs, CNNs, RNN, LSTM, GRU and Transformers.

  • Classical models and ensembles

    Gradient boosting, support vector machines and Gaussian processes with kernels composed from bricks, voting and stacking ensembles, and hybrid networks whose layers learn the features of a classical model.

  • Data preparation

    CSV, Excel, OpenDocument, JSON, Parquet and Feather files or a link. Join, fill in, clip outliers, scale, encode and split dates, with charts for every step and a readiness check.

  • MCP server and REST API

    AI assistants connect with OAuth; scripts use personal API tokens. Both work with the same networks, data and trainings as the web app.

  • Your data in your hands

    Building and exporting need no account. With one, you can download all your data or delete the account yourself, and protect it with two-factor login.

Data in Europe

Brick DNN is operated from Germany and follows the GDPR. Your training data stays in Europe. What is stored where, and how you take it with you:

  • Server in Switzerland

    The application, uploaded files, prepared datasets, trained weights and training results are on a server of Infomaniak in Geneva, Switzerland. Trainings run there; your data does not leave the server for them. The EU recognises Switzerland’s level of data protection as adequate (Art. 45 GDPR).

  • Database on the same server

    Accounts, networks, comments and the details of data and trainings (not the files) are in a PostgreSQL database on the same server in Switzerland; no other provider is involved.

  • Export and deletion

    Download my data under Account gives you a ZIP file with your networks, data preparations, training results and uploaded files; trained weights download from each run. You can delete single uploads and trainings, or the whole account with everything in it. Uploads and trainings nobody has used for 180 days are deleted automatically.

  • Code that runs anywhere

    The exported PyTorch, scikit-learn and pandas scripts import nothing from Brick DNN. Data that must not leave your institution, such as personal data, stays there: build the model here, train the code on your own computers, or run Brick DNN on your own server. The guide GDPR-compliant deep learning shows how.

  • No cookies, no tracking

    No analytics, no advertising, no cookies in the app. Fonts, scripts and images come from this server, apart from Paddle’s checkout when you buy a plan. This page loads nothing from elsewhere.

  • Few, named processors

    Technical error reports of the app go to Sentry’s EU region without user name, e-mail address or account ID; e-mails about your account are sent through Brevo in the EU. Hosting, database, e-mail and error reports run under data processing agreements. Payments go through Paddle, only if you buy a plan.

The privacy policy lists every provider, purpose and retention period.

For universities and research

  • A free plan with training on the server; no account is needed to build networks and export code.
  • Exported PyTorch and scikit-learn code runs without Brick DNN, so course material and published results stay usable.
  • Data stays in Europe, on a server in Switzerland, without tracking.
  • Open source: a university or institute can run its own instance.

Discounts for teaching and research are available on request: alexander.kuehling@brickdnn.com.

Brick DNN in a course: the page for lecturers

Pricing

Building, checking and exporting are free. The plans differ in compute and storage for training on the server.

Plans on brickdnn.com, prices per month including VAT
PlanPrice per monthCompute per monthStorageLongest trainingTrainings at a time
Free€01 CPU hour0.5 GB15 CPU minutes1
Starter€912 CPU hours3 GB1 CPU hour1
Plus€2440 CPU hours10 GB3 CPU hours1
Pro€69120 CPU hours25 GB6 CPU hours2
  • Paid per year: Starter €90, Plus €240, Pro €690. A semester pass gives Starter for 6 months for €39, paid once, without a subscription.
  • Paid plans can add compute beyond the allowance per CPU hour, only if you switch it on: €0.80 (Starter), €0.70 (Plus), €0.50 (Pro).
  • Paid plans also include longer hyperparameter searches, file predictions with up to a million rows, more runs logged from your own scripts, more people per shared network and shared comparisons of runs. API tokens and AI assistants may do on every plan, Free included, what you may do in the web app. Plus and Pro start first when the server is busy.
  • Teams at €149 per month for 5 seats, invoiced directly (small business under § 19 UStG, no VAT shown), course licences and support for your own server are available on request.
  • Subscriptions are cancellable to the end of the period you paid for. Payment and invoices are handled by Paddle.

All details on the pricing page

Frequently asked questions

What is Brick DNN?

Brick DNN is a web application for deep learning: you build neural networks and classical machine-learning models from layers (“bricks”), without code. It infers the shape of every tensor, points out mistakes before anything runs, trains models on the server and exports them as readable PyTorch or scikit-learn code.

Do I need an account?

No account is needed to build and check networks and to export their code. Saving networks, uploading data and training need a free account.

Which frameworks does the exported code use?

Neural networks export as PyTorch code (an nn.Module with a sanity check and, for tabular data, a training loop for CSV files). Classical models and ensembles export as scikit-learn scripts, and data preparations as pandas scripts. Trained weights can be downloaded together with the matching script.

Where is my data stored and processed?

In Europe. Uploaded files, trained weights and training results are stored and processed on a server of Infomaniak in Switzerland. Accounts and project metadata are in a database on the same server. There are no cookies and no tracking; the privacy policy lists every provider.

Can I train deep-learning models GDPR-compliant with Brick DNN?

Brick DNN follows the GDPR for your account and the data you upload, and trains on its server in Switzerland. Personal data of others and confidential data should not be uploaded to brickdnn.com, though: anonymise it first, or build the model here and train the exported code, or your own Brick DNN instance, on your institution’s computers. The guide on GDPR-compliant deep learning goes through the options.

What does it cost?

Building, checking and exporting are free. The free plan includes 1 CPU hour of training per month and 0.5 GB of storage. Paid plans with more compute and storage cost €9, €24 or €69 per month, VAT included.

Can I use Brick DNN in a course or for research?

Yes. Students can build and export networks without an account, and the free plan covers small trainings. Discounts for teaching and research are available on request at alexander.kuehling@brickdnn.com.

Can I run Brick DNN on my own server?

Yes. Brick DNN is open source under the Apache 2.0 licence and runs with Docker Compose. On your own machine, training uses a CUDA or Apple GPU if PyTorch finds one.

Which AI assistants work with Brick DNN?

Any client of the Model Context Protocol (MCP) that signs in with OAuth, for example Claude. Clients without OAuth and your own scripts use personal API tokens. For AI agents: how an agent builds, trains and exports models with Brick DNN.