Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/actions-rs/grcov.yml

This file was deleted.

63 changes: 11 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md

name: CI

on: [push, pull_request]
on: [push]

jobs:
check:
Expand All @@ -13,20 +11,9 @@ jobs:
toolchain: [stable, beta, nightly]
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features --all
uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }}
- run: cargo check --all

test:
name: Test Suite
Expand All @@ -36,20 +23,9 @@ jobs:
toolchain: [stable, beta, nightly]
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --all
uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }}
- run: cargo test --all

lints:
name: Lints
Expand All @@ -59,24 +35,7 @@ jobs:
toolchain: [stable, beta, nightly]
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt, clippy

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --all -- -D warnings
uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }}
- run: cargo fmt --all -- --check
- run: cargo clippy --all -- -D warnings
51 changes: 0 additions & 51 deletions .github/workflows/coverage.yml

This file was deleted.

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ readme = "README.md"
categories = ["science"]
license = "MIT"

[badges]
coveralls = {repository = "sile/tpe"}

[dependencies]
ordered-float = "2"
rand = "0.8"
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ tpe
[![tpe](https://img.shields.io/crates/v/tpe.svg)](https://crates.io/crates/tpe)
[![Documentation](https://docs.rs/tpe/badge.svg)](https://docs.rs/tpe)
[![Actions Status](https://github.com/sile/tpe/workflows/CI/badge.svg)](https://github.com/sile/tpe/actions)
[![Coverage Status](https://coveralls.io/repos/github/sile/tpe/badge.svg?branch=master)](https://coveralls.io/github/sile/tpe?branch=master)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

This crate provides a hyperparameter optimization algorithm using TPE (Tree-structured Parzen Estimator).
Expand Down
2 changes: 1 addition & 1 deletion src/density_estimation/parzen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl BuildDensityEstimator for ParzenEstimatorBuilder {
.chain(std::iter::once(prior))
.map(|x| Normal {
mean: x,
stddev: std::f64::NAN,
stddev: f64::NAN,
})
.collect::<Vec<_>>();
xs.sort_by_key(|x| OrderedFloat(x.mean));
Expand Down