Skip to main content

Posts

Showing posts from 2025

Multiple Ensemble to find best Hyperparameters

Below is a Python implementation of a machine learning pipeline class that supports LightGBM , XGBoost , CatBoost , and AdaBoost , using RandomizedSearchCV to find the best hyperparameters. The output includes the best hyperparameters for each model in JSON format. Prerequisites Install required libraries: pip install lightgbm xgboost catboost scikit-learn pandas numpy Code: Machine Learning Pipeline Class import json import numpy as np from sklearn.model_selection import RandomizedSearchCV, train_test_split from sklearn.ensemble import AdaBoostClassifier from xgboost import XGBClassifier from lightgbm import LGBMClassifier from catboost import CatBoostClassifier from sklearn.metrics import accuracy_score class MLBoostPipeline: def __init__(self, random_state=42, n_iter=20, cv=5): self.random_state = random_state self.n_iter = n_iter self.cv = cv self.models = { "LightGBM": LGBMClassifier(random_state=self.r...

Multiple Ensemble to find best Hyperparameters

Below is a Python implementation of a machine learning pipeline class that supports LightGBM , XGBoost , CatBoost , and AdaBoost , using RandomizedSearchCV to find the best hyperparameters. The output includes the best hyperparameters for each model in JSON format. Prerequisites Install required libraries: pip install lightgbm xgboost catboost scikit-learn pandas numpy Code: Machine Learning Pipeline Class import json import numpy as np from sklearn.model_selection import RandomizedSearchCV, train_test_split from sklearn.ensemble import AdaBoostClassifier from xgboost import XGBClassifier from lightgbm import LGBMClassifier from catboost import CatBoostClassifier from sklearn.metrics import accuracy_score class MLBoostPipeline: def __init__(self, random_state=42, n_iter=20, cv=5): self.random_state = random_state self.n_iter = n_iter self.cv = cv self.models = { "LightGBM": LGBMClassifier(random_state=self.r...

Langchain AI agent with Gemini AI Api

Integrating Gemini AI API with LangChain AI agents allows you to create a more dynamic and intelligent data science pipeline. Below is an example of how to accomplish this: --- Steps to Integrate Gemini AI with LangChain 1. Set Up Gemini API: Use the Gemini AI API for specific tasks like preprocessing, training, and evaluating. 2. Define Tools: Use LangChain's Tool class to wrap Gemini API functions. 3. Create a LangChain Agent: The agent orchestrates the tools and interacts with the Gemini API. --- Python Code Prerequisites Install the required libraries: pip install langchain openai requests pandas Code import requests import pandas as pd from langchain.agents import initialize_agent, Tool from langchain.llms import OpenAI # Set your Gemini API key and endpoint API_KEY = "your_gemini_api_key" BASE_URL = "https://api.gemini.ai/v1" # Replace with actual Gemini API base URL # Define helper functions for the Gemini AI API def preprocess_data_gemini(da...

Job Openings from LinkedIn feeds 2nd Jan 2025

Senior Support Engineer Business Analyst Amazon Business Analyst Finance related Lead Data Engineer

Business Analyst in Stock market and financial analysis

Deep Dive into Business Analyst Specializing in Financial and Stock Market Analysis Here’s a comprehensive look into tools, certifications, and case studies relevant to this domain: --- 1. Tools for Financial and Stock Market Analysis Data Analysis and Visualization Python and R: Libraries: Pandas, NumPy, Matplotlib, Seaborn, Scikit-learn. Use Case: Data cleaning, predictive modeling, and machine learning for stock trend predictions. Power BI/Tableau: Use Case: Interactive dashboards for real-time market monitoring and KPI tracking. Microsoft Excel (Advanced): Use Case: Financial modeling, pivot tables, and Monte Carlo simulations. Market Analysis Platforms Bloomberg Terminal: Use Case: Real-time financial data, analytics, and news. Reuters Eikon: Use Case: Stock and commodity market analysis, trend monitoring. Yahoo Finance/Google Finance APIs: Use Case: Data retrieval for building custom stock dashboards. Databases and Querying Tools SQL: Use Case: Querying historical stock price dat...

Guidewire Job Opening LinkedIn feeds Jan 2 2025

Guidewire Architect CC Guidewire BA Guidewire QA

Guidewire Job Opportunities 1st Jan 2025

Multiple Guidewire openings Guidewire Architect Guidewire QA 5 to 12 Guidewire two job role openings

Today's linkedin Job feeds

Java developer 3 to 5 Senior Data Scientist Business Analyst, Operations specialist Senior Manager