Download pages/Introduction_To_DataScience.py from Phaneendrabayi/Zero_To_Hero_Machine_Learning: direct link, hf CLI and curl.
- Browser
- Download file 5.92 kB
-
https://huggingface.co/spaces/Phaneendrabayi/Zero_To_Hero_Machine_Learning/resolve/refs%2Fpr%2F1/pages/Introduction_To_DataScience.py
- Command line
-
hf download hf://spaces/Phaneendrabayi/Zero_To_Hero_Machine_Learning@refs/pr/1/pages/Introduction_To_DataScience.py
-
curl -L -o Introduction_To_DataScience.py https://huggingface.co/spaces/Phaneendrabayi/Zero_To_Hero_Machine_Learning/resolve/refs%2Fpr%2F1/pages/Introduction_To_DataScience.py
5.92 kB
| import streamlit as st | |
| # Set up the page | |
| st.title("Introduction to Data Science") | |
| st.subheader("Data Science: A Detective for Data") | |
| # Main description | |
| st.write(""" | |
| Data science is like being a detective for data. Itโs a way of analyzing and understanding information to find patterns, solve problems, and make smart decisions. | |
| """) | |
| # Visualization of the data science process | |
| st.write("##### Example :-") | |
| st.write("**Imagine you have a huge pile of puzzle pieces (data), and your job is to put them together to see the big picture. This involves:**") | |
| # Add steps | |
| steps = [ | |
| "๐ **Collecting Data**: Getting the right information from various sources, like surveys, apps, or sensors.", | |
| "๐ ๏ธ **Cleaning Data**: Fixing messy or incomplete data so it makes sense.", | |
| "๐ **Analyzing Data**: Using math, statistics, and programming to discover patterns and trends.", | |
| "๐ **Visualizing Data**: Creating graphs and charts to explain the findings.", | |
| "๐ค **Making Predictions**: Using tools like machine learning to guess what might happen next." | |
| ] | |
| for step in steps: | |
| st.write(step) | |
| # Use case examples | |
| st.write("##### Applications :-") | |
| st.write(""" | |
| **It's used in many fields like healthcare, sports, business, and entertainment to answer questions like:** | |
| """) | |
| use_cases = [ | |
| "๐ฌ What movies should Netflix recommend?", | |
| "๐ข How can a company predict what products will sell best?", | |
| "๐ Which medicines work better for certain diseases?" | |
| ] | |
| for case in use_cases: | |
| st.write(case) | |
| # Footer | |
| st.write("Data science turns raw data into useful knowledge!") | |
| st.markdown("---") | |
| st.title("Understanding AI, ML, DL, NLP, and Generative AI") | |
| st.write("Explore these fascinating technologies in a simple and detailed way!") | |
| # Section: AI | |
| st.subheader("๐ What is Artificial Intelligence (AI)?") | |
| st.write(""" | |
| Artificial Intelligence (AI) is the broad field of teaching computers to perform tasks that normally require human intelligence. | |
| AI enables machines to think, reason, learn, and solve problems. | |
| ##### Key Features of AI: | |
| - **Automation**: Performing repetitive tasks without human intervention. | |
| - **Adaptability**: Learning and improving over time. | |
| - **Decision-Making**: Analyzing information to make logical decisions. | |
| ##### Examples of AI in Action: | |
| - **Self-driving cars** use AI to navigate roads and avoid accidents. ๐ | |
| - **Virtual assistants** like Siri or Alexa respond to your voice commands. ๐ฌ | |
| - **Healthcare AI** helps doctors diagnose diseases more accurately. ๐ฅ | |
| """) | |
| st.markdown("---") | |
| # Section: ML | |
| st.subheader("๐ What is Machine Learning (ML)?") | |
| st.write(""" | |
| Machine Learning (ML) is a subset of AI that focuses on teaching computers to learn from data. | |
| Instead of being explicitly programmed, ML systems recognize patterns and make predictions. | |
| ##### How ML Works: | |
| 1. **Data Collection**: Gather data (e.g., weather records). | |
| 2. **Model Training**: Use algorithms to learn patterns in the data. | |
| 3. **Predictions**: Apply the learned patterns to make decisions. | |
| ##### Examples of ML: | |
| - **Predictive Weather Forecasting**: Will it rain tomorrow? ๐ง๏ธ | |
| - **Netflix Recommendations**: Suggesting what to watch next based on your history. ๐ฌ | |
| - **Spam Detection**: Identifying and filtering out unwanted emails. ๐ง | |
| """) | |
| st.markdown("---") | |
| # Section: DL | |
| st.subheader("๐ง What is Deep Learning (DL)?") | |
| st.write(""" | |
| Deep Learning (DL) is an advanced type of Machine Learning that uses neural networks modeled after the human brain. | |
| These networks have multiple layers, allowing them to handle very complex tasks. | |
| ##### Key Features: | |
| - **Highly Accurate**: Excels with large datasets. | |
| - **Handles Complexity**: Can identify patterns in images, videos, and audio. | |
| ##### Examples of DL: | |
| - **Face Recognition**: Unlocking your phone by recognizing your face. ๐ฑ | |
| - **Autonomous Vehicles**: Teaching cars to detect pedestrians and follow traffic rules. ๐ | |
| - **Language Translation**: Real-time translation of conversations. ๐ | |
| """) | |
| st.markdown("---") | |
| # Section: NLP | |
| st.subheader("๐ฌ What is Natural Language Processing (NLP)?") | |
| st.write(""" | |
| Natural Language Processing (NLP) is a branch of AI focused on enabling computers to understand, process, and respond to human language. | |
| ##### Capabilities of NLP: | |
| - **Language Understanding**: Analyzing text or speech to extract meaning. | |
| - **Language Generation**: Creating human-like text or speech. | |
| ##### Examples of NLP: | |
| - **Chatbots**: Answering your questions in customer service. ๐ค | |
| - **Google Translate**: Translating languages instantly. ๐ | |
| - **Sentiment Analysis**: Determining if a tweet is positive, negative, or neutral. ๐๐ | |
| """) | |
| st.markdown("---") | |
| # Section: Generative AI | |
| st.subheader("๐จ What is Generative AI?") | |
| st.write(""" | |
| Generative AI is an advanced field of AI focused on creating new contentโlike text, images, music, or videosโthat mimics human creativity. | |
| ##### How Generative AI Works: | |
| - Uses models like **GPT** (for text) or **DALLยทE** (for images). | |
| - Trains on large datasets to generate realistic content. | |
| ##### Examples of Generative AI: | |
| - **ChatGPT**: Writing essays, stories, or answering questions like a human. โ๏ธ | |
| - **DALLยทE**: Creating stunning artwork from simple descriptions. ๐จ | |
| - **Music Generation**: Composing original music tracks. ๐ต | |
| ##### Real-World Applications: | |
| - **Marketing**: Creating personalized ads and content. | |
| - **Education**: Summarizing textbooks or generating practice questions. | |
| - **Entertainment**: Writing scripts or creating virtual characters. | |
| """) | |
| st.markdown("---") | |
| # Footer | |
| st.write(""" | |
| ##### Why These Technologies Matter: | |
| Together, AI, ML, DL, NLP, and Generative AI are transforming industries, automating repetitive tasks, | |
| enhancing decision-making, and enabling creative possibilities we never imagined. ๐ | |
| Which one interests you the most? Letโs dive deeper! ๐ค | |
| """) | |