
How AI Works
The algorithms and the mathematics, explained from zero.
- 812 pages in 12 parts and 53 chapters
- 184 algorithms explained in full, two worked examples each
- A free video series to go with it
- Free sample on Leanpub
TestCodeSleep specializes in software development, testing, design, and consulting. We create innovative software solutions, develop our own products, and help clients build exceptional digital experiences that drive business growth.
TestCodeSleep is a specialized software development company that combines technical expertise with innovative thinking to deliver exceptional digital products.
We develop our own software products while also partnering with clients to create custom solutions. Our comprehensive approach covers the entire software development lifecycle, from initial concept and design to development, testing, and ongoing support.
Tailored software solutions built with modern technologies and best practices.
Comprehensive testing strategies to ensure your software is reliable and bug-free.
Advanced AI solutions including chatbots, predictive analytics, and intelligent automation systems.
User-centered design that creates intuitive and engaging digital experiences.
Expert guidance on technology choices, architecture, and development strategies.
A book, a video series, a kids' activity book and spreadsheet workbooks that we build and sell ourselves.
We follow a structured approach that ensures your project is delivered on time, within budget, and exceeds expectations.
From initial requirements gathering to final deployment and maintenance, our process is designed to maximize collaboration, minimize risks, and deliver exceptional results.
We analyze your requirements, define project scope, and create a comprehensive development roadmap with clear milestones.
Our team creates user-friendly designs and robust technical architecture that ensures scalability and performance.
We build your software using modern technologies, following coding best practices and maintaining clean, documented code.
Comprehensive testing including unit tests, integration tests, and user acceptance testing to ensure bug-free delivery.
We deploy your software and provide ongoing support, maintenance, and updates to keep it running smoothly.
We create tailored software solutions that perfectly match your business requirements and help you achieve your goals.
Modern, responsive web applications built with cutting-edge technologies for optimal performance and user experience.
Native and cross-platform mobile applications that deliver exceptional user experiences on iOS and Android devices.
Comprehensive testing services to ensure your software is reliable, secure, and performs flawlessly under all conditions.
User-centered design services that create intuitive, engaging, and visually appealing interfaces for your software products.
Expert technical guidance to help you make informed decisions about technology stack, architecture, and development strategies.
We develop intelligent solutions that automate processes, provide insights, and enhance user experiences through advanced machine learning.
Our AI team combines technical expertise with business understanding to create applications that deliver measurable results.
Intelligent conversational AI that understands context and provides smart responses.
Machine learning models that analyze patterns and predict future trends.
Image recognition and analysis for object detection and quality inspection.
AI-powered automation to streamline workflows and reduce manual tasks.
Personalized recommendation engines that increase user engagement.
End-to-end AI development from training to production deployment.
Want to see how these models work on the inside? Every one of them is explained step by step in our book, How AI Works.
Explained from zero: every equation, every number, every step
Our book starts with the numbers and symbols of school maths and ends with transformers and large language models. Every algorithm is explained in the same way: the idea in plain words, every equation explained symbol by symbol, and two worked examples with every number computed.
By Krzysztof Kołek, founder of TestCodeSleep.
So you always know where you are, from k-means to attention.
Where it comes from, and which part of AI uses it.
An everyday picture before the first symbol.
Every part named, every part in its own colour.
Numbered steps you can follow with a pencil.
Two complete examples, nothing skipped.
Search, vision, speech, recommenders and language models.
The usual mistakes, and the three things to remember.
One algorithm a week from the book: a full step-by-step video and a one-minute Short. Every equation explained, every number of the worked examples computed on screen.
Next to client work we make our own products for learning and for work: for developers, for analysts, and for kids.

The algorithms and the mathematics, explained from zero.
Printable coloring & activity book for kids 3–10: early math and AI.
Machine learning packages for the spreadsheet you already have.
Whether you need a custom web application, mobile app, or enterprise software solution, TestCodeSleep has the expertise to bring your vision to life. Let's discuss your project requirements and explore how we can help you succeed.
We combine technical expertise with a deep understanding of business requirements to deliver software solutions that drive real results.
Our team of experienced developers, designers, and testers work collaboratively to ensure every project meets the highest standards of quality and performance.
We use modern technologies and follow industry best practices to create robust, scalable, and maintainable software solutions.
We work closely with our clients throughout the development process, ensuring transparency and alignment with your business goals.
We use agile methodologies and efficient project management to deliver your software on time and within budget.
Comprehensive testing and quality assurance processes ensure your software is reliable, secure, and performs excellently.
Practical books on machine learning, AI tools, GPU processing and .NET performance, published on Leanpub.
We offer comprehensive AI services including intelligent chatbots, predictive analytics, computer vision, process automation, recommendation systems, and custom model development. We work with technologies like TensorFlow, PyTorch, OpenAI GPT, and deploy solutions using modern MLOps practices.
We specialize in modern web technologies including React, Vue.js, Node.js, Python, and cloud platforms like AWS and Azure. For mobile development, we use React Native and Flutter. We also work with databases like PostgreSQL, MongoDB, and Redis.
Project timelines vary depending on complexity and scope. A simple web application might take 4-8 weeks, while a complex enterprise solution could take 3-6 months. We provide detailed timeline estimates during our initial consultation.
We follow rigorous AI development practices including thorough data preprocessing, cross-validation, performance testing, and continuous monitoring. We implement MLOps pipelines for model versioning, A/B testing, and automated retraining to maintain high accuracy and reliability in production.
AI projects typically take longer due to data preparation and model training phases. A simple chatbot might take 6-10 weeks, while complex machine learning systems could take 4-8 months. We provide detailed timeline estimates during our initial AI consultation, including data requirements and model complexity considerations.
Yes, we offer comprehensive support for both AI systems and traditional software. This includes model monitoring and retraining for AI projects, bug fixes, security updates, performance optimization, and feature enhancements. We provide different support tiers to match your needs and budget.
Yes. Next to client work we build and sell our own products: the book How AI Works with its free video series, Dot the Robot, a printable math-and-AI activity book for kids, and SheetML, machine-learning workbooks for Excel and LibreOffice Calc.
In our book How AI Works and in the free video series on our YouTube channel. Every equation is explained symbol by symbol, and every number of the worked examples is computed step by step.
Every project is unique, and we're here to answer any questions you might have about your specific requirements, timeline, or technology choices. Let's discuss how we can help bring your software vision to life.
Contact UsReady to start your next software project? Have questions about our services? We'd love to hear from you and discuss how we can help bring your ideas to life.
Remote-First Company
Serving Clients Worldwide
Mon–Fri: 9AM – 6PM EST
Response Time: Within 48 hours