Skip to content

Instantly share code, notes, and snippets.

View myui's full-sized avatar

Makoto YUI myui

View GitHub Profile
@myui
myui / REAME_jp.md
Created October 29, 2025 05:15
GPT newspaper

GPT Newspaper - Graflow Workflow Examples

概要

このディレクトリには、AI新聞記事を自動生成するシステムの2つのバージョンが含まれています。Graflowの動的タスク生成機能を段階的に理解できるように設計されています。

2つのワークフロー

1. newspaper_workflow.py - 基本版

@myui
myui / graflow_unique_features_ja.md
Last active October 24, 2025 13:35
Graflow unique features

Graflow独自機能とオリジナリティ

LangGraph、LangChain、Celery、Airflowとの包括的比較

ドキュメントバージョン: 1.1 最終更新: 2025-10-23 著者: Graflowチーム

更新履歴:

  • v1.1 (2025-10-23): コア機能 #9 に「チェックポイント/リジューム」を追加し、関連セクションを全面刷新
  • v1.0 (2025-10-22): 初版

Redis FairQueue 設計指示書(最終版)

プロジェクト概要

基本情報

  • プロジェクト名: fairque
  • ディレクトリ: /Users/myui/workspace/myui/fairque
  • パッケージ管理: uv
  • Python バージョン: 3.10以上
  • 型注釈: 必須(Full Typing)

image

def compute_similarity_weight(num_contacts: int, max_val: float=2.0, k: float=1.0) -> float:
    """
    Compute the similarity weighting factor based on the number of user-item interactions.

    Args:
        num_contacts (int): Number of user-item interactions.
 max_val (float): Maximum value for the similarity weighting factor.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from typing import List
import numpy as np
from numpy.typing import ArrayLike
import scipy.sparse as sp
from sklearn.linear_model import ElasticNet
import warnings
from sklearn.exceptions import ConvergenceWarning
from tqdm import tqdm
class ColumnarView: