Support for LogExpFunctions && better errors

未关闭
#102 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
julia
领域
devtools

调研方向

首先使用 log1p(exp(t)) 和 LogExpFunctions.log1pexp(t) 重现所示的 TaylorDiff.make_seed 示例,然后检查 TaylorDiff 中与这些操作相关的入口点及其错误行为。当 LogExpFunctions.log1pexp 能够与 TaylorScalar 示例一起工作,并且不支持的情况会产生信息明确的错误时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Hey,

import TaylorDiff
import LogExpFunctions
t = TaylorDiff.make_seed(1.2, 1.0, Val{3}())
log1p(exp(t))
LogExpFunctions.log1pexp(t)

yields:

julia> import TaylorDiff

julia> import LogExpFunctions

julia> t = TaylorDiff.make_seed(1.2, 1.0, Val{3}())
TaylorScalar{Float64, 3}(1.2, (1.0, 0.0, 0.0))

julia> log1p(exp(t))
TaylorScalar{Float64, 3}(1.4632824673380311, (0.7685247834990176, 0.08894722032340283, -0.015923022053454108))

julia> LogExpFunctions.log1pexp(t)
1.4632824673380311

julia> 

Two questions:

  1. How hard would it be to support LogExpFunctions
  2. Why, why and why dont we error in those cases ? Took me ages to understand what was going on...
主要语言
Julia
星标
83
派生
12
PR 合并指标
30 天内没有已合并 PR

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JuliaDiff/TaylorDiff.jl 的其他 Issue

查看 JuliaDiff/TaylorDiff.jl 的全部 Issue

相似的 Issue

更多 Julia Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。