https://github.com/alan-turing-institute/iydlr

https://github.com/alan-turing-institute/iydlr

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: alan-turing-institute
  • Language: Rust
  • Default Branch: main
  • Size: 622 KB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 9
  • Releases: 0
Created about 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme

README.md

Getting started

  • Install Rust! Follow instructions here.
  • For vscode users:
    • Install the rust-analyzer extension.
    • Open User Settings (JSON) with CMD + SHIFT + P the type Open User Settings.
    • Add these settings: json "[rust]": { "editor.defaultFormatter": "rust-lang.rust-analyzer", "editor.formatOnSave": true, "editor.rulers": [102] },

How to use the repo

Making branches and issues

  • Create an issue and note the issue number (eg. 5).
  • Create a branch named 5-mybranch-name.

Create a new Rust Crate in the Rust Workspace (./iydlr/)

  • cd /path/to/iydlr
  • Decide if it's a library crate or a binary crate.
    • binary crate: cargo new my-crate-name
    • library crate: cargo new my-crate-name --lib

Interfaces and how to use them

The goal is the create a Rust "thing" (could be a struct or an enum) that implements the interface. Which looks like this in Rust:

``rust trait MyInterface { /// A method that takes a reference toselfand returnsusize`. fn some_func(&self) -> usize; }

struct MyStruct { some_field: usize, }

impl MyInterface for MyStruct { fn somefunc(&self) -> usize { // do some special logic *self.somefield + 2 } } ```

You will now be able to find that function implemented on the struct when you instantiate the struct:

```rust fn demo() -> () { let mystruct = MyStruct { somefield: 4 };

let myresult = &mystruct.some_func();

// my_result will be = 6 } ```

Resources

Rust resources

  • The amazing Rust Language Book: better writing than most novels, very clear and helpful.
  • Rust by Example: The hand-in-hand example based companion to the Rust Lang Book.

Tokenisation resources

Autograd resources

Transformer resources

Owner

  • Name: The Alan Turing Institute
  • Login: alan-turing-institute
  • Kind: organization
  • Email: info@turing.ac.uk

The UK's national institute for data science and artificial intelligence.

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 7
  • Total pull requests: 17
  • Average time to close issues: N/A
  • Average time to close pull requests: 37 minutes
  • Total issue authors: 4
  • Total pull request authors: 5
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 15
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 7
  • Pull requests: 17
  • Average time to close issues: N/A
  • Average time to close pull requests: 37 minutes
  • Issue authors: 4
  • Pull request authors: 5
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 15
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • edchapman88 (1)
Pull Request Authors
  • mhauru (8)
  • sgreenbury (4)
  • thobson88 (2)
  • edchapman88 (1)
  • andrewphilipsmith (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

Cargo.toml cargo
interfaces/Cargo.toml cargo
attention/Cargo.toml cargo
autodiff/Cargo.toml cargo
elements/Cargo.toml cargo
neural_nets/Cargo.toml cargo
tensors/Cargo.toml cargo
  • rand 0.8.5 development
  • anyhow 1.0.86
config/Cargo.toml cargo
embeddings/Cargo.toml cargo
tokenisation/Cargo.toml cargo
transformer/Cargo.toml cargo