README.md 1.15 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# AstroWaveNet: A generative model for light curves.

Implementation based on "WaveNet: A Generative Model of Raw Audio":
https://arxiv.org/abs/1609.03499

## Code Authors

Alex Tamkin: [@atamkin](https://github.com/atamkin)

Chris Shallue: [@cshallue](https://github.com/cshallue)

## Pull Requests / Issues

Chris Shallue: [@cshallue](https://github.com/cshallue)

## Additional Dependencies

This package requires TensorFlow 1.12 or greater. As of October 2018, this
requires the **TensorFlow nightly build**
([instructions](https://www.tensorflow.org/install/pip)).

In addition to the dependencies listed in the top-level README, this package
requires:

* **TensorFlow Probability** ([instructions](https://www.tensorflow.org/probability/install))
* **Six** ([instructions](https://pypi.org/project/six/))

## Basic Usage

To train a model on synthetic transits:

```bash
bazel build astrowavenet/...
```

```bash
bazel-bin/astrowavenet/trainer \
--dataset=synthetic_transits \
--model_dir=/tmp/astrowavenet/ \
--config_overrides='{"hparams": {"batch_size": 16, "num_residual_blocks": 2}}' \
--schedule=train_and_eval \
--eval_steps=100 \
--save_checkpoints_steps=1000
```