TGViewer
Channel Public Channel
Data Analytics

Data Analytics

@dataanalyticsx

Dive into the world of Data Analytics – uncover insights, explore trends, and master data-driven decision making.

Admin: @HusseinSheikho || @Hussein_Sheikho
Subscribers
30.6K
Photos
545
Videos
20
Links
361
Recent Posts 18 shown
Post #3451 351
Exporting the model from PyTorch to the universal ONNX format for independent inference 🚀

Deploying PyTorch models in production often requires installing a large framework and relying on a Python environment. The ONNX (Open Neural Network Exchange) format converts the computation graph into an intermediate binary format suitable for running on any device and programming language. We will export the PyTorch neural network and run its inference using the lightweight ONNX Runtime. 🛠

To export and run the neural network, we will install the PyTorch framework, the ONNX library, and the cross-platform ONNX Runtime engine.

pip install torch onnx onnxruntime


The packages for converting and high-performance execution of graphs have been successfully installed. ✅

We will write a Python script that creates a test PyTorch model, exports it to a .onnx file, and immediately performs a verification of the output.

import torch, torch.nn as nn, onnxruntime as ort, numpy as np

model = nn.Sequential(nn.Linear(10, 5), nn.ReLU())
x = torch.randn(1, 10)
torch.onnx.export(model, x, "model.onnx", input_names=["input"], output_names=["output"])

session = ort.InferenceSession("model.onnx")
res = session.run(None, {"input": x.numpy()})
print("ONNX Output shape:", res[0].shape)


The model graph has been successfully serialized into a binary file, and the runtime performed the prediction without involving PyTorch. 📦

# verification (checks the correctness and structure of the saved ONNX model)
python3 -c "import onnx; model = onnx.load('model.onnx'); onnx.checker.check_model(model); print('ONNX Model Status: Valid')"


Expected output: ONNX Model Status: Valid

# cleanup (deletes the generated model file and cleans up binaries)
rm -f model.onnx


Converting neural networks to ONNX allows you to decouple inference from Python and run models in C++, Rust, Go, or directly in a web browser. Be sure to specify the names of the input and output tensors when exporting to simplify integration with the service. 💻

#PyTorch #ONNX #MachineLearning #DeepLearning #AI #DevOps

✨ Join Best TG Channels https://t.me/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
Telegram AI PYTHON 🌟 You’ve been invited to add the folder “AI PYTHON 🌟”, which includes 15 chats.
  • ❤ 1
Post #3448 382

Forwarded from Machine Learning with Python

"How to Train a Neural Network" is a concise summary of the MIT course lectures on deep learning from 2024. It focuses on one of the fundamental questions in neural networks: how a model learns its weights.

The summary examines the training process from a mathematical perspective. It covers topics such as forward propagation, loss functions, gradients, backpropagation, and gradient-based optimization methods.

I believe this is an interesting resource for those who want to go beyond a general, intuitive understanding of neural networks and begin to delve into the mathematics that underlies their training.

https://ocw.mit.edu/courses/6-7960-deep-learning-fall-2024/mit6_7960_f24_lec2.pdf

https://t.me/CodeProgrammer 🤩
  • ❤ 1
Post #3444 921
👨‍💻 "The Repository" - a large database of cheat sheets and materials!

This section contains reference materials for Python, presented concisely, structured, and with ready-to-use code examples. It includes a general cheat sheet for the language, as well as separate materials on specific libraries and development areas. Multithreading, multiprocessing, asyncio, GIL, and other topics are also covered in detail.

📌 Here's the link: kb.txtly.ru

👉Russian
lang
  • ❤ 1
Post #3440 1.06K

Forwarded from Machine Learning with Python

If you're just starting to learn machine learning and want to delve deeper into the mathematics required for machine learning and deep learning, I recommend trying this platform. It's something like LeetCode for machine learning.

This is not an advertisement: I personally used it and decided to share it with you.

https://deep-ml.com

https://t.me/CodeProgrammer
Post #3437
Data Analytics pinned «📊 Collecting Data Across Different Regions? Data analysis often starts long before the dashboard or visualization. When collecting public web data, regional differences can affect the content, prices, search results, or other information returned to your…»
Post #3436 1.94K
📊 Collecting Data Across Different Regions?

Data analysis often starts long before the dashboard or visualization.

When collecting public web data, regional differences can affect the content, prices, search results, or other information returned to your requests.
Using residential IPs from different locations can help when you need to test or collect location-specific data.

711Proxy provides:
🌍 100M+ real residential IPs
🌎 200+ countries & regions
🔄 Sticky sessions
🔌 SOCKS5 support

🎁 1GB trial for new users
Use 711TRIAL to get 1GB of residential proxy traffic for testing.
👉 https://www.711proxy.com/
After signing up, contact 711Proxy support and mention “711TRIAL” to claim your trial.
For eligible new users only.
711Proxy Premium & Affordable Proxy Services-711Proxy Get residential proxies, unlimited proxies, and static residential proxies from the best provider with 100 million+ IP addresses, get started now!
  • ❤ 5
Post #3433 2.47K
Get Up to 500MB of Residential Proxy Traffic for Your Python Projects 🐍

Building a web scraper with Python?
ThorData helps developers collect public web data while handling proxy rotation, geo-targeting, and access restrictions.

✅ Residential IPs across 190+ countries
✅ Country, city, and ASN-level targeting
✅ Rotating and sticky sessions
✅ HTTP(S) and SOCKS5 support
✅ Works with Requests, Scrapy, Selenium, and Playwright

🎁 Exclusive offer for Machine Learning with Python members

Eligible new users can receive up to 500MB of residential proxy traffic for testing.

Use channel code: PYTHONSCRAPE

👉 Start your test:
https://www.thordata.com/?ls=MQiAFqAo&lk=ps-02

Available to eligible new users. The actual trial traffic may vary, up to a maximum of 500MB.
Thordata Thordata - High-Quality Proxy Service for Web Data Scraping Thordata's precision proxy solution was chosen to ensure seamless data collection. Enjoy the best prices and services tailored to your needs.
  • ❤ 5
Post #3432 2.17K
"A Mathematical Explanation of Transformers" is a recent paper in which the authors construct a rigorous mathematical model of the Transformer architecture and large language models.

The Transformer is presented as a discretization of a continuous integro-differential equation. Self-attention is described as a non-local integral operator, layer normalization as a projection onto a constrained set, and fully connected layers and activation functions are incorporated into the same mathematical framework.

The authors then use operator splitting and numerical discretization to derive the standard Transformer architecture and extend this approach to multi-head attention, Vision Transformers, and convolutional Transformers.

I have previously shared several materials on the mathematics of neural networks, Transformers, and large language models, but new and interesting developments are constantly emerging in this field.

https://arxiv.org/pdf/2510.03989
  • ❤ 4
Older posts →

About this channel

How can I read @dataanalyticsx without a Telegram account?
TGViewer shows the public web preview Telegram publishes for Data Analytics: recent posts, photos, videos and the subscriber count, with no app, login or account.
How many subscribers does Data Analytics have?
Data Analytics (@dataanalyticsx) has 30.6K subscribers on Telegram, refreshed roughly every 30 minutes.
Does Data Analytics know I viewed it here?
No. Public channel previews carry no viewer identity, and TGViewer has no accounts or tracking of what you look up.
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →