Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Baxter Eaves committed Nov 14, 2023
1 parent cbf7dfd commit e691ec1
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 29 deletions.
13 changes: 7 additions & 6 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ offering, or any other offering based on a cloud computing or other type of
hosted distribution model (collectively, "Hosted Offerings")), for a fee or
otherwise on a commercial or other for-profit basis.

(ii) You may not link the Licensed Work to, or otherwise include the Licensed
Work in or with, any product, application, or service (including in any Hosted
Offering) that is distributed or otherwise offered, whether on a standalone
basis or in combination with other products, applications, or services for a fee
or otherwise on a commercial or other for-profit basis. Condition (ii) shall not
limit the generality of condition (i) above.
(ii) You may not link the Licensed Work or outputs generated by the Licensed
Work to, or otherwise include the Licensed Work in or with, any product,
application, or service (including in any Hosted Offering) that is distributed
or otherwise offered, whether on a standalone basis or in combination with
other products, applications, or services for a fee or otherwise on a
commercial or other for-profit basis. Condition (ii) shall not limit the
generality of condition (i) above.


Change Date: Change date is four years from release date.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
</div>
<div>
<strong>Installation</strong>:
<a href='#'>Rust</a> |
<a href='#'>Python</a> |
<a href='#'>CLI</a>
<a href='#installation'>Rust</a> |
<a href='#installation'>Python</a> |
<a href='#installation'>CLI</a>
</div>
<div>
<strong>Contents</strong>:
Expand Down Expand Up @@ -165,7 +165,7 @@ Lace requires rust.

To install the CLI:
```
$ cargo install --locked lace
$ cargo install --locked lace-cli
```

To install pylace
Expand Down
2 changes: 1 addition & 1 deletion book/src/data/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Compared with many other machine learning tools, lace has very few requirements
for data: data columns may be integer, continuous, or categorical string types;
empty cells do not not need to be filled in; and the table must contain a
string row index column labeled `ID`.
string row index column labeled `ID` or `Index` (case-insensitive).

## Supported data types for inference

Expand Down
2 changes: 1 addition & 1 deletion book/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Installation requires rust, which you can get [here](https://www.rust-lang.org/t
The lace CLI is installed with rust via the command

```console
$ cargo install --locked lace
$ cargo install --locked lace-cli
```

## Rust crate
Expand Down
4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "lace-cli"
version = "0.4.2"
version = "0.5.0"
authors = ["Promised AI"]
edition = "2021"
rust-version = "1.58.1"
license = "SSPL-1.0"
license = "BSL-1.1"
homepage = "https://www.lace.dev/"
repository = "https://github.com/promised-ai/lace"
description = "A probabilistic cross-categorization engine"
Expand Down
2 changes: 1 addition & 1 deletion lace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build = "build.rs"
edition = "2021"
exclude = ["tests/*", "resources/test/*", "target/*"]
rust-version = "1.58.1"
license = "SSPL-1.0"
license = "BSL-1.1"
homepage = "https://www.lace.dev/"
repository = "https://github.com/promised-ai/lace"
description = "A probabilistic cross-categorization engine"
Expand Down
15 changes: 3 additions & 12 deletions lace/lace_cc/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,6 @@ impl State {
self.loglike = self.loglike();
}

// fn log_prior(&self) -> f64 {
// self.views.iter().map(|view| {
// view.ftrs.values().map(|ftr| {

// })
// })
// }

fn reassign_rows<R: Rng>(
&mut self,
row_asgn_alg: RowAssignAlg,
Expand Down Expand Up @@ -559,10 +551,9 @@ impl State {
let mut col_ixs: Vec<usize> = (0..self.n_cols()).collect();
col_ixs.shuffle(rng);

self.loglike = col_ixs
.drain(..)
.map(|col_ix| self.reassign_col_gibbs(col_ix, draw_alpha, rng))
.sum::<f64>();
col_ixs.drain(..).for_each(|col_ix| {
self.reassign_col_gibbs(col_ix, draw_alpha, rng);
})
}

/// Gibbs column transition where column transition probabilities are pre-
Expand Down
2 changes: 1 addition & 1 deletion lace/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
//! # Feature flags
//! - `formats`: create `Engine`s and `Codebook`s from IPC, CSV, JSON, and
//! Parquet data files
//! - `bencher`: Build benchmarking utilties
//! - `bencher`: Build benchmarking utilities
//! - `ctrc_handler`: enables and update handler than captures Ctrl+C
//!
#![warn(unused_extern_crates)]
Expand Down
2 changes: 1 addition & 1 deletion pylace/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classifiers = [
"Programming Language :: Rust",
"Topic :: Scientific/Engineering",
]
license = { text="SSPL-1.0" }
license = { text="BSL-1.1" }
authors = [
{ name="Baxter Eaves", email="[email protected]"},
{ name="Michael Schmidt", email="[email protected]"},
Expand Down

0 comments on commit e691ec1

Please sign in to comment.