The rise comes on the back of months of decline for the stock.

Palantir topped Wall Street's fourth-quarter estimates as more businesses and the U.S. government race to buy its artificial intelligence tools.

The rise comes on the back of months of decline for the stock.