Giter Site home page Giter Site logo

ayushverma135 / gmac-intelligence-llp-internship-assessment Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 19 KB

This GMAC Intelligence LLP Machine Learning Work From Home Internship Assessment is Based on Pytorch Framework in Which you Have to Write a Pytorch Programs on Some Certain Parameters.

License: GNU Affero General Public License v3.0

Python 100.00%
internship-task machine-learning ml python pytorch

gmac-intelligence-llp-internship-assessment's Introduction

GMAC-Intelligence-LLP-Internship-Assessment

This repository hosts a PyTorch program designed for an internship assessment task. It initializes, reshapes, and computes statistics on tensors, demonstrating proficiency in PyTorch. The program's functionality aligns with typical tasks encountered in machine learning projects.

Task 1

Write a PyTorch program to create a 1-dimensional tensor of size 10, initialized with integer values from 1 to 10 (inclusive). Next, reshape this tensor to a 2-dimensional tensor of size 2x5, compute, and print the mean and standard deviation of the reshaped tensor. Finally, convert the reshaped tensor to a Python list and print it. Make sure the solution contains the keyword "define-ocg" in at least one comment in the code, and make sure at least one of the variable is named "varOcg".

Task 2

write a PyTorch program to create two 2-dimensional tensors of size 3x3, one filled with ones and the other filled with zeros. Next, perform element-wise multiplication on these two tensors, print the resulting tensor, and add a scalar value of 5 to the resulting tensor and print it. Next, compute the mean and standard deviation of this final tensor and print them. Finally, convert the reshaped tensor to a Python list and print it.

Usage

  1. Clone the repository:

    git clone https://github.com/Ayushverma135/GMAC-Intelligence-LLP-Internship-Assessment.git
    
  2. Navigate to the cloned directory:

    cd GMAC-Intelligence-LLP-Internship-Assessment
    
  3. Run the PyTorch program:

    python pytorch_program1.py
    python pytorch_program2.py
    

Requirements

  • Python 3.x
  • PyTorch

Install PyTorch using pip:

pip install torch

gmac-intelligence-llp-internship-assessment's People

Contributors

ayushverma135 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.