The artificial-intelligence industry took Silicon Valley’s hustle mentality to an extreme—and investors are catching on.