慣性聚合 関心のあるブログ、ニュース、テクノロジーを効率的に追跡
原文を読む 慣性聚合で開く

おすすめ購読元

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
Vercel News
Vercel News
M
MIT News - Artificial intelligence
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
Recent Announcements
Recent Announcements
Stack Overflow Blog
Stack Overflow Blog
人人都是产品经理
人人都是产品经理
IT之家
IT之家
F
Fortinet All Blogs
博客园 - 聂微东
U
Unit 42
Martin Fowler
Martin Fowler
腾讯CDC
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
量子位
阮一峰的网络日志
阮一峰的网络日志
博客园 - Franky

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
AutoML Guide
Luis M · 2026-05-24 · via DEV Community

Luis M

SynapCores AutoML Guide

Build powerful machine learning models directly in SQL without writing any Python code.

Overview

SynapCores AutoML provides comprehensive options for creating machine learning experiments through SQL syntax. Train, tune, and deploy production-ready models using familiar database commands.

Task Types

Task Type Description Default Metric
regression Continuous value prediction R-squared
binary_classification Two-class classification AUC
classification/multiclass Multi-class classification Accuracy
clustering Unsupervised grouping Silhouette Score
anomaly Anomaly detection F1 Score
time_series Time series forecasting MAPE

Creating AutoML Experiments

Basic Syntax

Option 1: AS Syntax

CREATE EXPERIMENT <experiment_name> AS
<SELECT_query>
WITH (<options>)

Enter fullscreen mode Exit fullscreen mode

Option 2: USING Syntax

CREATE EXPERIMENT <experiment_name>
USING (<SELECT_query>)
TARGET <target_column>
OPTIONS (<options>)

Enter fullscreen mode Exit fullscreen mode

Configuration Options

General Options

Option Type Default Description
task_type string 'binary_classification' Type of ML task
target_column string Required Column to predict
max_trials integer 100 Maximum training trials
time_budget_minutes integer 60 Maximum time budget
validation_split float 0.2 Validation data proportion
cv_folds integer 5 Cross-validation folds
optimization_metric string Task-dependent Metric to optimize
ensemble boolean true Create ensemble models
early_stopping_patience integer 10 Trials without improvement
random_seed integer 42 Random seed for reproducibility

Available Algorithms

  • 'linear_regression' - Linear Regression
  • 'logistic_regression' - Logistic Regression
  • 'decision_tree' - Decision Tree
  • 'random_forest' - Random Forest
  • 'gradient_boosting' - Gradient Boosting
  • 'xgboost' - XGBoost
  • 'neural_network' - Neural Network
  • 'knn' - K-Nearest Neighbors
  • 'naive_bayes' - Naive Bayes
  • 'svm' - Support Vector Machine

Algorithm Selection Strategies

  • 'all' - Try all available algorithms
  • 'fast' - Only fast algorithms (linear models, decision trees, naive bayes, knn)
  • 'accurate' - Only highly accurate algorithms (random forest, gradient boosting, xgboost, neural networks)
  • 'interpretable' - Only interpretable algorithms (linear regression, logistic regression, decision trees)

Algorithm-Specific Options

Random Forest

Hyperparameter Type Default Description
n_estimators integer 100 Number of trees
max_depth integer None Maximum tree depth
min_samples_split integer 2 Minimum samples to split
max_features string/float 'sqrt' Features to consider
WITH (
  task_type='classification',
  algorithms=['random_forest'],
  n_estimators=200,
  max_depth=10
)

Enter fullscreen mode Exit fullscreen mode

Neural Network

Hyperparameter Type Default Description
hidden_layers array [100] Hidden layer sizes
learning_rate float 0.001 Initial learning rate
batch_size integer 32 Mini-batch size
n_epochs integer 100 Maximum epochs
activation string 'relu' Activation function
dropout_rate float 0.0 Dropout rate
WITH (
  task_type='classification',
  algorithms=['neural_network'],
  hidden_layers=[128, 64, 32],
  dropout_rate=0.2
)

Enter fullscreen mode Exit fullscreen mode

Gradient Boosting / XGBoost

Hyperparameter Type Default Description
n_estimators integer 100 Number of boosting stages
learning_rate float 0.1 Learning rate
max_depth integer 3 Maximum tree depth
subsample float 1.0 Fraction of samples

Feature Engineering Options

Option Type Default Description
auto_features boolean true Auto-generate features
polynomial_degree integer 2 Polynomial feature degree
interaction_features boolean false Generate interaction features
scaling string 'standard' Feature scaling method
missing_values string 'mean' Missing value handling
categorical_encoding string 'onehot' Categorical encoding method

Scaling Methods

  • 'standard' - Standardization (zero mean, unit variance)
  • 'minmax' - Min-Max scaling to [0, 1]
  • 'robust' - Robust scaling using median and IQR
  • 'none' - No scaling

Categorical Encoding

  • 'onehot' - One-hot encoding
  • 'label' - Label encoding
  • 'target' - Target encoding
  • 'ordinal' - Ordinal encoding

Complete Examples

Customer Churn Prediction

CREATE EXPERIMENT churn_prediction AS
SELECT customer_id, age, tenure, monthly_charges, total_charges, churned
FROM customers
WITH (
  task_type='binary_classification',
  target_column='churned',
  max_trials=50,
  validation_split=0.2
);

Enter fullscreen mode Exit fullscreen mode

House Price Regression

CREATE EXPERIMENT house_price_model AS
SELECT * FROM housing_data
WITH (
  task_type='regression',
  target_column='price',
  algorithms=['random_forest', 'xgboost', 'gradient_boosting'],
  max_trials=100,
  n_estimators=200
);

Enter fullscreen mode Exit fullscreen mode

Fraud Detection with Feature Engineering

CREATE EXPERIMENT fraud_detection AS
SELECT * FROM transactions
WITH (
  task_type='binary_classification',
  target_column='is_fraud',
  algorithms=['xgboost', 'neural_network'],
  auto_features=true,
  polynomial_degree=2,
  interaction_features=true,
  scaling='robust',
  categorical_encoding='target',
  max_trials=150
);

Enter fullscreen mode Exit fullscreen mode

Time Series Forecasting

CREATE EXPERIMENT sales_forecast AS
SELECT date, product_id, sales, promotions, holidays
FROM sales_data
WITH (
  task_type='time_series',
  target_column='sales',
  algorithms=['gradient_boosting', 'neural_network'],
  cv_folds=5
);

Enter fullscreen mode Exit fullscreen mode

Interpretable Model for Compliance

CREATE EXPERIMENT loan_approval AS
SELECT * FROM loan_applications
WITH (
  task_type='binary_classification',
  target_column='approved',
  algorithms=['logistic_regression', 'decision_tree'],
  max_depth=5
);

Enter fullscreen mode Exit fullscreen mode

Model Operations

Show All Experiments

SHOW MODELS;

Enter fullscreen mode Exit fullscreen mode

Deploy a Model

DEPLOY MODEL best_model FROM EXPERIMENT churn_prediction
WITH (replicas=3, memory='2Gi');

Enter fullscreen mode Exit fullscreen mode

Make Predictions

PREDICT churn_probability, risk_score
USING churn_model
AS SELECT customer_id, age, tenure FROM new_customers;

Enter fullscreen mode Exit fullscreen mode

Describe a Model

DESCRIBE MODEL churn_model;

Enter fullscreen mode Exit fullscreen mode

Drop a Model

DROP MODEL old_model;

Enter fullscreen mode Exit fullscreen mode

Best Practices

  1. Parameter Tuning: Algorithm-specific options apply to all selected algorithms where compatible.

  2. Default Values: All options have sensible defaults. Only specify options that differ from defaults.

  3. Resource Limits: Experiments respect both max_trials and time_budget_minutes. Stops when either limit is reached.

  4. Reproducibility: Set random_seed for consistent results across runs.

  5. Algorithm Compatibility: The system automatically filters incompatible algorithms for each task type.


Document Version: 1.0
Last Updated: December 2025
Website: https://synapcores.com


Originally published at synapcores.com — SynapCores is a free, single-binary AI-native database (vector + graph + SQL + LLM).