TensorGram

79

9

Sai Durga Kamesh Kota

Added on September 14, 2024

A real-time remote service to get the tensorflow callbacks to the telegram including the details of metrics

TensorGram

A real-time remote service to get the tensorflow callbacks to the telegram including the details of metrics

Sai Durga Kamesh Kota

README.md

A realtime remote service to get the keras callbacks to the telegram including the details of metrics .

Logo

Downloads

Features:-

  1. It helps by getting the updates of your model including metrics and loss function graphs which help user the view and get to a statistical conclusion about the model remotely.
  2. It is a biggest advantage for the users who need not spend hours and hours infront of system for watching the updates of the model.
  3. Updates you get are from a telegram bot.

Installation:-

You can easily install this telegram using following command.

pip install tensorgram

Dependencies/Requirements:-

  1. Keras
  2. Tensorflow
  3. Requests
  4. Matplotlib

Works on python>=3.7

How to use:-

  • Create a neural network in keras.The sample code is as follows. ``` import tensorflow from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Activation import numpy as np from tensorflow.keras.optimizers import SGD

X = np.array([[0,0],[0,1],[1,0],[1,1]]) y = np.array([[0],[1],[1],[0]])

model = Sequential() model.add(Dense(8, input_dim=2)) model.add(Activation('tanh')) model.add(Dense(1)) model.add(Activation('sigmoid'))

sgd = SGD(learning_rate=0.1) model.compile(loss='binary_crossentropy', optimizer=sgd,metrics=['accuracy'])


* Now go to Telegram app and search for @tensorgram_bot and join the channel by clicking on the chat.  

<p align="center">
  <a href="https://pypi.org/project/tensorgram/">
<img src="https://raw.githubusercontent.com/ksdkamesh99/TensorGram/main/Images/start.jpeg" width=200px>
</a>
</p>
* This application send you the data based on the unique chat id for every user in telegram. So to get your chat id you need to go to search and type @chatid_echo_bot and click on start to get your unique chat id.  

<p align="center">
  <a href="https://pypi.org/project/tensorgram/">
<img src="https://raw.githubusercontent.com/ksdkamesh99/TensorGram/main/Images/chatid.jpeg" width=200px>
</a>
</p>


* Store it safely as it will be required later.  

* Now we need to import the TensorGram from tensorgram library using following code.  

from tensorgram import TensorGram


* Now we need to create a object of TensorGram by specifying the following attributes like model name and chat id which you obtained before.  

tf=TensorGram("model-name","123456789")


* Now you can start training the model and specify the object in the callbacks.  

model.fit(X, y, batch_size=1, epochs=10,callbacks=[tf],verbose=1)


* Now if you open the telegram app you will find the updates as follows.  



<p align="center">
  <a href="https://pypi.org/project/tensorgram/">
<img src="https://raw.githubusercontent.com/ksdkamesh99/TensorGram/main/Images/merged.png" width=500px float="left">
</a>
</p>


## Bug / Feature Request:-

If you find a bug (gave undesired results), kindly open an issue [here](https://github.com/ksdkamesh99/TensorGram/issues/new/choose) by including your search query and the expected result.

If you'd like to request a new function, feel free to do so by opening an issue [here](https://github.com/ksdkamesh99/TensorGram/issues/new/). Please include sample queries and their corresponding results.

## 💥 How to Contribute ?
- If you wish to contribute kindly check the [CONTRIBUTING.md](https://github.com/ksdkamesh99/TensorGram/blob/main/CONTRIBUTING.md)🤝

## ❤️ Thanks to our awesome contributors ✨✨

<table>
  <tr>
    <td>
      <a href="https://github.com/ksdkamesh99/TensorGram/graphs/contributors">
        <img src="https://contrib.rocks/image?repo=ksdkamesh99/TensorGram" />
      </a>
    </td>
  </tr>
</table>

[CONTRIBUTORS.md](/CONTRIBUTORS.md)



## Code of Conduct

You can find our Code of Conduct [here](/CODE_OF_CONDUCT.md).


## Open-source Programs


Winter of Code is an open-source program envisioned by DevScript that helps understand the paradigm of Open Source contribution. It aims to bring students into the world of open source development and see the power of unified problem solving in real time.

<img src="https://devscript.tech/woc/img/WOC-logo.png" width="40%">
## License

This project follows the [MIT License](/LICENSE).

## Contact:-
For any kind of suggesstions/ help in code Please mail me at ksdkamesh99@gmail.com.

Related Content

YoloV7 in Tensorflow.js

This repository is an implementation of Yolov7 using Tensorflow.js. The code runs directly on the browser and the detector was trained on the MS COCO dataset to recognizes up to 80 different classes.
GitHubUpdated 17 months ago

Run a self-driving car using JavaScript and TensorFlow.js

Demonstration of how to train a self-driving car to steer and to drive autonomously in Udacity Self-Driving Car Simulator using TensorFlow.js.
GitHubUpdated 20 months ago

Semantic Sementation model within ML pipeline

This repository shows how to build a Machine Learning Pipeline for Semantic Segmentation task with TensorFlow Extended(TFX) and various GCP products such as Vertex Pipeline, Training, and Enpoint.
GitHubUpdated 21 months ago

MLOps for Vision Models from 🤗 with TFX

This repository shows how to build Machine Learning pipeline for a vision model (TensorFlow) from 🤗 Transformers using the TensorFlow Ecosystem.
GitHubUpdated 29 months ago

Fast Transformer

This repo implements Fastformer: Additive Attention Can Be All You Need by Wu et al. in TensorFlow. Fast Transformer is a Transformer variant based on additive attention that can handle long sequences efficiently with linear complexity. Fastformer is much more efficient than many existing Transformer models and can meanwhile achieve comparable or even better long text modeling performance.
GitHubUpdated 37 months ago

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.