tfjs-tsne icon indicating copy to clipboard operation
tfjs-tsne copied to clipboard

README.md script tag instructions don't work with tfjs v1

Open 1wheel opened this issue 7 years ago • 5 comments

This throws a Uncaught (in promise) TypeError: n is not a function error in chrome & ff:

<!DOCTYPE html>
<meta charset='utf-8'>

<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-tsne"></script>

<script>
  const tfdata = tf.randomUniform([2000,10]);
  const tsneOpt = tsne.tsne(tfdata);
  tsneOpt.compute()
</script>

Downgrading tfjs fixes:

<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"></script>

1wheel avatar Mar 28 '19 01:03 1wheel

@nicola17 Are there any plans to update tfjs-tsne to use v1.x of tensorflow.js?

zhihua-chen avatar May 16 '19 21:05 zhihua-chen

Hi @zhihua-chen, unfortunately I don't have any plans at the moment :( I know @bldrvnlw did some work on it, @bldrvnlw do you have a version running with v1.x?

Nicola17 avatar May 21 '19 10:05 Nicola17

@Nicola17 We have an intern who has started working on this a little bit.

zhihua-chen avatar May 21 '19 17:05 zhihua-chen

Great to hear! Please keep me posted :)

On Tue, May 21, 2019, 7:02 PM zhihua-chen [email protected] wrote:

@Nicola17 https://github.com/Nicola17 We have an intern who has started working on this a little bit.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tensorflow/tfjs-tsne/issues/76?email_source=notifications&email_token=ABFQ75N7LJTDGB5BX7AX3CLPWQTKTA5CNFSM4HB4K2SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV4RQAY#issuecomment-494475267, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFQ75P7RL5K7VF2W3HYP4DPWQTKTANCNFSM4HB4K2SA .

Nicola17 avatar May 23 '19 18:05 Nicola17

What I find interesting is that the observable notebooks (eg. https://observablehq.com/@mbostock/lets-try-t-sne) do not work even though use the of the 0.14 release of tfjs

cpietsch avatar Sep 21 '19 17:09 cpietsch