Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Safe-DS/Library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.6.0
Choose a base ref
...
head repository: Safe-DS/Library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.7.0
Choose a head ref
  • 9 commits
  • 139 files changed
  • 3 contributors

Commits on Mar 27, 2023

  1. feat: add _file suffix to methods interacting with files (#103)

    ### Summary of Changes
    
    In `Table`:
    * Rename `to_csv` to `to_csv_file`
    * Rename `to_json` to `to_json_file`
    * Rename `from_csv` to `from_csv_file`
    * Rename `from_json` to `from_json_file`
    * Rename `path_to_file` parameters to `path`
    
    ---------
    
    Co-authored-by: lars-reimann <lars-reimann@users.noreply.github.com>
    lars-reimann and lars-reimann authored Mar 27, 2023
    Configuration menu
    Copy the full SHA
    ec011e4 View commit details
    Browse the repository at this point in the history
  2. feat: sort_rows of a Table (#104)

    Closes #14.
    
    ### Summary of Changes
    
    * Add a new method `sort_rows` to the `Table` class to sort rows using
    some criteria.
    * Rename the parameter of `sort_columns` for the sorting criteria to
    `comparator`.
    
    ---------
    
    Co-authored-by: lars-reimann <lars-reimann@users.noreply.github.com>
    lars-reimann and lars-reimann authored Mar 27, 2023
    Configuration menu
    Copy the full SHA
    20aaf5e View commit details
    Browse the repository at this point in the history
  3. feat: swap name and data parameters of Column (#105)

    ### Summary of Changes
    
    The order of parameters of the `__init__` method of `Column` is now
    
    1. `name` (was 2.)
    2. `data` (was 1.)
    3. `type_`.
    
    Having the `name` first is more readable since the data can be quite
    long and highlights that the `name` acts as a key and the `data` as a
    value.
    
    ---------
    
    Co-authored-by: lars-reimann <lars-reimann@users.noreply.github.com>
    lars-reimann and lars-reimann authored Mar 27, 2023
    Configuration menu
    Copy the full SHA
    c2f8da5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c238d21 View commit details
    Browse the repository at this point in the history
  5. test: better tests for predict method of models (#106)

    Closes #102.
    
    ### Summary of Changes
    
    Instead of simply checking that the `predict` method of models does not
    raise an exception, we now also check that
    * the features of the input are preserved in the result
    * the target column has the correct name.
    
    ---------
    
    Co-authored-by: lars-reimann <lars-reimann@users.noreply.github.com>
    lars-reimann and lars-reimann authored Mar 27, 2023
    Configuration menu
    Copy the full SHA
    fe68426 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. feat: remove OrdinalEncoder (#107)

    ### Summary of Changes
    
    The `OrdinalEncoder` was a bit of an outlier compared to the other
    `Transformer` classes:
    
    * It could only be applied to a single column instead of a list of
    columns. Because of this, it was not possible to implement #61.
    * Nothing was "learned" since the user had to specify the value order
    explicitly. The `fit` step was completely unnecessary.
    
    Therefore, I've removed the class `OrdinalEncoder`. Instead the
    `transform_column` method on a `Table` can be used. If eventually find
    this to be too cumbersome, we can implement a new method
    `transform_column_into_ordered_labels` on `Table`.
    
    ---------
    
    Co-authored-by: lars-reimann <lars-reimann@users.noreply.github.com>
    lars-reimann and lars-reimann authored Mar 28, 2023
    Configuration menu
    Copy the full SHA
    b92bba5 View commit details
    Browse the repository at this point in the history
  2. feat: improve transformers for tabular data (#108)

    Closes #61.
    Closes #90.
    
    ### Summary of Changes
    
    * Common superclasses `TableTransformer` and
    `InvertibleTableTransformer`
    * Common interface for `fit`, `transform`, `fit_transform`,
    `inverse_transform`
    * Return new transformer when calling `fit`
    * More thorough tests
    
    ---------
    
    Co-authored-by: lars-reimann <lars-reimann@users.noreply.github.com>
    lars-reimann and lars-reimann authored Mar 28, 2023
    Configuration menu
    Copy the full SHA
    b18a06d View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. feat: specify features and target when creating a TaggedTable (#114)

    Closes #27 .
    
    ### Summary of Changes
    
    A user can now optionally specify the `features` of a `TaggedTable`
    explicitly. If the features are not specified, all columns except the
    target are considered features.
    
    The `predict` method of classifiers/regressors only uses the features
    for prediction. The other columns are still included in the output,
    however. This is, for example, useful to include an ID column in the
    table created by `predict`.
    
    ---------
    
    Co-authored-by: lars-reimann <lars-reimann@users.noreply.github.com>
    lars-reimann and lars-reimann authored Mar 29, 2023
    Configuration menu
    Copy the full SHA
    95e1fc7 View commit details
    Browse the repository at this point in the history
  2. chore(release): 0.7.0 [skip ci]

    ## [0.7.0](v0.6.0...v0.7.0) (2023-03-29)
    
    ### Features
    
    * `sort_rows` of a `Table` ([#104](#104)) ([20aaf5e](20aaf5e)), closes [#14](#14)
    * add `_file` suffix to methods interacting with files ([#103](#103)) ([ec011e4](ec011e4))
    * improve transformers for tabular data ([#108](#108)) ([b18a06d](b18a06d)), closes [#61](#61) [#90](#90)
    * remove `OrdinalEncoder` ([#107](#107)) ([b92bba5](b92bba5)), closes [#61](#61)
    * specify features and target when creating a `TaggedTable` ([#114](#114)) ([95e1fc7](95e1fc7)), closes [#27](#27)
    * swap `name` and `data` parameters of `Column` ([#105](#105)) ([c2f8da5](c2f8da5))
    semantic-release-bot committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    07b3062 View commit details
    Browse the repository at this point in the history
Loading